Skip to content

Commit

Permalink
changed compilerscripts for Wind and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
NYC00kie committed Feb 12, 2022
1 parent 6759198 commit c869d8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion compilerscript.bat
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pyinstaller --noconfirm --onefile --windowed --icon "./textures/Player_1.ico" --add-data "./convpictolvl.py;." --add-data "./draw.py;." --add-data "./level.py;." --add-data "./player.py;." --add-data "./textures;textures/" --add-data "./Levels;Levels/" --add-data "./Levelpictures;Levelpictures/" --add-data "./backgroundmusic;backgroundmusic/" "./main.py"
@echo off
pyinstaller --noconfirm --onefile --distpath "./windows" --windowed --icon "./textures/Player_1.ico" --add-data "./convpictolvl.py;." --add-data "./versioncontrol.py;." --add-data "./draw.py;." --add-data "./level.py;." --add-data "./player.py;." --add-data "./textures;textures/" --add-data "./Levels;Levels/" --add-data "./Levelpictures;Levelpictures/" --add-data "./backgroundmusic;backgroundmusic/" "./main.py"
echo "File can be found in ./windows"
4 changes: 2 additions & 2 deletions compilerscript.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
pyver=$(python3 --version)
echo "Now Compiling Game with pyinstaller on Python Version $pyver"
pyinstaller --noconfirm --onefile --windowed --icon "./textures/Player_1.ico" --add-data "./convpictolvl.py;." --add-data "./draw.py;." --add-data "./level.py;." --add-data "./player.py;." --add-data "./textures;textures/" --add-data "./Levels;Levels/" --add-data "./Levelpictures;Levelpictures/" --add-data "./backgroundmusic;backgroundmusic/" "./main.py"
pyinstaller --noconfirm --distpath "./linux" --onefile --windowed --icon "./textures/Player_1.ico" --add-data "./convpictolvl.py:." --add-data "./versioncontrol.py:." --add-data "./draw.py:." --add-data "./level.py:." --add-data "./player.py:." --add-data "./textures:textures/" --add-data "./Levels:Levels/" --add-data "./Levelpictures:Levelpictures/" --add-data "./backgroundmusic:backgroundmusic/" "./main.py"
echo "compilation complete"
echo "The Executable should now be in ./dist"
echo "The Executable should now be in ./linux"

0 comments on commit c869d8e

Please sign in to comment.