Skip to content

Commit

Permalink
Add indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-de-Oliveira committed Dec 23, 2023
1 parent ebc81e1 commit 617a566
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
11 changes: 5 additions & 6 deletions Windows_Maker/README.md → Windows_Compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ with pip and install GNU make, we recomend use the
[chocolatey](https://chocolatey.org/install) to install
GNU Make using this follow command (as administrator):

```batchfile
```bat
choco install make
```

Then you should clone the repository using the follow command:

```batchfile
```bat
git clone https://github.com/Samuel-de-Oliveira/CanUseTimer
```

install the required libraries for Python, go to the start of
repository and run `pip install -r requirements.txt` and finally
change the directory to `Windows_Maker` and run the `make` command
And finally change the directory to `Windows_Maker` and
run the `make` command.

and done the software is compiled :smile:
and done the software is compiled at the `dist` directory :smile:
6 changes: 6 additions & 0 deletions Windows_Compiler/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FILE = ..\Main.py
ICON = ..\Images\icon.ico

all:
pip install -r ..\requirements.txt
pyinstaller -F $(FILE) -i $(ICON)
8 changes: 0 additions & 8 deletions Windows_Maker/makefile

This file was deleted.

3 changes: 2 additions & 1 deletion lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def __init__(self) -> None:
with open('timesSaved.json', 'r') as f: self.load = json.loads(f.read())

def Save(self) -> None:
with open('timesSaved.json', 'w') as f: f.write(json.dumps(self.load))
with open('timesSaved.json', 'w') as f:
f.write(json.dumps(self.load), indent=True)


# Init Time list
Expand Down

0 comments on commit 617a566

Please sign in to comment.