-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Make filenames less dreadful. + Adds a makefile for easy building and releases (on Linux systems, at least.) - Remove unnessecary `New Stuff.txt`. + New build instructions.
- Loading branch information
KScott
committed
Jan 24, 2020
1 parent
71644f9
commit dc3e78c
Showing
8 changed files
with
67 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ dist/** | |
__pycache__/** | ||
__pycache__ | ||
build | ||
build/** | ||
build/** | ||
Release.zip |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Release.zip: clean Scrambler.py Engine.py Themes.py Assets | ||
pyinstaller Scrambler.py -w -F -i Assets/favi.ico | ||
7z a Release.zip ./dist/* Assets | ||
|
||
clean: | ||
rm -rf __pycache__ dist build *.spec *.exe Release.zip |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,72 @@ | ||
# Scares-Scrambler-Class-Rebuild | ||
# Scares Scrambler | ||
|
||
The place where all current/future Scares Scrambler stuff will happen | ||
(at least, in it's current form). | ||
The place where all current/future Scares Scrambler stuff will | ||
happen (at least, in it's current form). | ||
|
||
Current Release Build: 20 | ||
|
||
Current Beta Build: 9+10 | ||
Current Beta Build: 22 | ||
|
||
Currently Planned Features: A bunch, but Scare'm not writing them right now. | ||
Currently Planned Features: A bunch, but Scare'm not writing them | ||
right now. | ||
|
||
# What need? | ||
|
||
- Python3 | ||
- [Python >=3.5][1] | ||
- Tkinter (comes with all prebuilt versions of Python) | ||
- Pyinstaller (optional, for building) | ||
- [Pyinstaller][2] (optional, for building) | ||
- Some form of 7-zip (optional, for building) | ||
- GNU make (optional, for building on Linux) | ||
|
||
`pip3 install pyinstaller` | ||
[1]: https://www.python.org/ | ||
[2]: https://www.pyinstaller.org/ | ||
|
||
If you're running Python 3.8, as of now you need to install the | ||
*development* version of Pyinstaller for the build to work at all: | ||
```bash | ||
# Install Pyinstaller (not system dependent): | ||
pip3 install pyinstaller | ||
|
||
`pip3 install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz` | ||
# Install p7zip (Arch/Manjaro Linux): | ||
sudo pacman -Sy p7zip | ||
|
||
# Install p7zip (Debian/Ubuntu Linux): | ||
sudo apt-get update | ||
sudo apt-get install p7zip-full p7zip-rar | ||
``` | ||
|
||
# How run without build? | ||
|
||
``` | ||
python3 Scares_Scrambler_Class_Rebuild.py | ||
python3 Scrambler.py | ||
``` | ||
|
||
# How build? | ||
|
||
``` | ||
pyinstaller Scares_Scrambler_Class_Rebuild.py -w -F -i Assets/favi.ico | ||
``` | ||
## Linux | ||
|
||
Open the console of your choice, and navigate to where you | ||
have extracted a source .zip file or whereever you have | ||
cloned the repository. | ||
|
||
Running `make` will create a `Release.zip` file that contains | ||
a binary and `Assets`. | ||
|
||
## Windows | ||
|
||
Using GNU make is a bit harder on Windows, so Scott've included | ||
a `build.cmd` file. | ||
|
||
Install [7-Zip][3] and add it to the `PATH`: | ||
|
||
- Press Windows+R, type `sysdm.cpl`, and press enter. | ||
- Click on the `Advanced` tab. | ||
- Click on the `Environment Variables...` button. | ||
- Add or edit the `PATH` variable **for your user** | ||
(under "User variables") to include | ||
`C:\Program Files\7-Zip` or `C:\Program Files (x86)\7-Zip`. | ||
|
||
(this only has to be done once per system.) | ||
|
||
[3]: https://7-zip.org/download.html | ||
|
||
Double-clicking `build.cmd` will now create a `Release.zip` | ||
file that contains a binary and `Assets`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
pyinstaller Scrambler.py -w -F -i Assets/favi.ico | ||
7z a Release.zip ./dist/* Assets |