-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
155 additions
and
312,840 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 |
---|---|---|
@@ -1,5 +1,42 @@ | ||
@echo off | ||
set NAME=social-emperors_0.02a | ||
pyinstaller --onefile --add-data "..\..\assets;assets" --add-data "..\..\flash;flash" --add-data "..\..\stub;stub" --add-data "..\..\templates;templates" --paths ..\..\. --workpath .\work --distpath .\dist --specpath .\bundle --noconfirm --name %NAME% ..\server.py | ||
echo Done. | ||
pause>NUL | ||
set NAME=social-emperors_0.03a | ||
|
||
:main | ||
call :pyInstaller | ||
echo [+] Building Done! | ||
pause>NUL | ||
exit | ||
|
||
:pyInstaller | ||
echo [+] Starting pyInstaller... | ||
pyinstaller --onefile ^ | ||
--console ^ | ||
--add-data "..\..\assets;assets" ^ | ||
--add-data "..\..\stub;stub" ^ | ||
--add-data "..\..\templates;templates" ^ | ||
--add-data "..\..\villages;villages" ^ | ||
--add-data "..\..\config;config" ^ | ||
--paths ..\..\. ^ | ||
--workpath .\work ^ | ||
--distpath .\dist ^ | ||
--specpath .\bundle ^ | ||
--noconfirm ^ | ||
--icon=..\icon.ico ^ | ||
--name %NAME% ..\server.py | ||
REM --debug bootloader | ||
echo [+] pyInstaller Done. | ||
EXIT /B 0 | ||
|
||
:clean | ||
echo [+] Cleaning... | ||
rm .\work\* | ||
rm .\work\.* | ||
rmdir .\work | ||
rm .\dist\* | ||
rm .\dist\.* | ||
rmdir .\dist | ||
rm .\bundle\* | ||
rm .\bundle\.* | ||
rmdir .\bundle | ||
echo [+] Cleaning Done. | ||
EXIT /B 0 |
Binary file not shown.
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,21 @@ | ||
import sys | ||
import os | ||
|
||
# Bundled data (extracted to a temp dir) | ||
|
||
TMP_BUNDLED_DIR = sys._MEIPASS if getattr(sys, 'frozen', None) else "." | ||
|
||
ASSETS_DIR = os.path.join(TMP_BUNDLED_DIR, "assets") | ||
STUB_DIR = os.path.join(TMP_BUNDLED_DIR, "stub") | ||
TEMPLATES_DIR = os.path.join(TMP_BUNDLED_DIR, "templates") | ||
VILLAGES_DIR = os.path.join(TMP_BUNDLED_DIR, "villages") | ||
QUESTS_DIR = os.path.join(VILLAGES_DIR, "quests") | ||
CONFIG_DIR = os.path.join(TMP_BUNDLED_DIR, "config") | ||
CONFIG_PATCH_DIR = os.path.join(CONFIG_DIR, "patch") | ||
|
||
# Not bundled data (next to server EXE) | ||
|
||
BASE_DIR = "." | ||
|
||
MODS_DIR = os.path.join(BASE_DIR, "mods") | ||
SAVES_DIR = os.path.join(BASE_DIR, "saves") |
Oops, something went wrong.