From 617a5664ffd8654d2a1718eaf2a4c41bd67b4dc0 Mon Sep 17 00:00:00 2001 From: Samuel-de-Oliveira Date: Sat, 23 Dec 2023 08:31:09 -0300 Subject: [PATCH] Add indent --- {Windows_Maker => Windows_Compiler}/README.md | 11 +++++------ Windows_Compiler/makefile | 6 ++++++ Windows_Maker/makefile | 8 -------- lib/__init__.py | 3 ++- 4 files changed, 13 insertions(+), 15 deletions(-) rename {Windows_Maker => Windows_Compiler}/README.md (60%) create mode 100644 Windows_Compiler/makefile delete mode 100644 Windows_Maker/makefile diff --git a/Windows_Maker/README.md b/Windows_Compiler/README.md similarity index 60% rename from Windows_Maker/README.md rename to Windows_Compiler/README.md index 1ae8520..07c21f2 100644 --- a/Windows_Maker/README.md +++ b/Windows_Compiler/README.md @@ -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: \ No newline at end of file +and done the software is compiled at the `dist` directory :smile: \ No newline at end of file diff --git a/Windows_Compiler/makefile b/Windows_Compiler/makefile new file mode 100644 index 0000000..dac8bd1 --- /dev/null +++ b/Windows_Compiler/makefile @@ -0,0 +1,6 @@ +FILE = ..\Main.py +ICON = ..\Images\icon.ico + +all: + pip install -r ..\requirements.txt + pyinstaller -F $(FILE) -i $(ICON) \ No newline at end of file diff --git a/Windows_Maker/makefile b/Windows_Maker/makefile deleted file mode 100644 index 5f6fffc..0000000 --- a/Windows_Maker/makefile +++ /dev/null @@ -1,8 +0,0 @@ -FILE = ..\Main.py -ICON = ..\Images\icon.ico - -all: - pyinstaller -F $(FILE) -i $(ICON) - -clean: - rm -rf dist build *.spec \ No newline at end of file diff --git a/lib/__init__.py b/lib/__init__.py index 64109a2..2b3ae38 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -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