2020-06-19 23:23:58 +02:00
|
|
|
all: clean docs release
|
2019-11-12 10:31:51 +01:00
|
|
|
|
2020-01-08 15:04:05 +01:00
|
|
|
zipfile = elite-scripts.zip
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(zipfile)
|
|
|
|
|
2019-11-12 10:31:51 +01:00
|
|
|
docs:
|
|
|
|
bash generate_docs.sh
|
2019-09-17 08:27:30 +02:00
|
|
|
|
2019-09-18 14:06:28 +02:00
|
|
|
# requires a windows box
|
2019-09-17 08:27:30 +02:00
|
|
|
exe:
|
2020-01-17 16:04:45 +01:00
|
|
|
pip install --user --upgrade -r requirements.txt
|
|
|
|
pip install --user --upgrade -r pyEDSM\requirements.txt
|
2022-09-05 18:58:49 +02:00
|
|
|
pip install --user --upgrade pywin32-ctypes cffi
|
|
|
|
pip install --user --upgrade pyinstaller
|
|
|
|
python -m PyInstaller --clean -yF edsm-getnearest.py
|
|
|
|
python -m PyInstaller --clean -yF edts.py
|
|
|
|
python -m PyInstaller --clean -yF explorationtools.py
|
|
|
|
python -m PyInstaller --clean -yF spansh.py
|
2020-01-08 15:04:05 +01:00
|
|
|
|
|
|
|
release: clean
|
2022-09-05 18:58:49 +02:00
|
|
|
pwsh -Command "Compress-Archive -Path .\dist\*.exe elite-scripts.zip"
|