From ea1e2a7e2045131719cc7bf7c2df250d97d2f3b3 Mon Sep 17 00:00:00 2001 From: n-e-y-s <44730000+n-e-y-s@users.noreply.github.com> Date: Tue, 16 Jun 2020 23:03:30 +0200 Subject: [PATCH] clean up structure --- .../Altoids_Tin.jpg | Bin Breadboard.jpg => screenshots/Breadboard.jpg | Bin tools_and_scripts/g27calib_release.cmd | 20 ++++++++++++++++++ .../src => tools_and_scripts}/test_filter.py | 0 4 files changed, 20 insertions(+) rename Altoids_Tin.jpg => screenshots/Altoids_Tin.jpg (100%) rename Breadboard.jpg => screenshots/Breadboard.jpg (100%) create mode 100644 tools_and_scripts/g27calib_release.cmd rename {G27_Pedals_and_Shifter/src => tools_and_scripts}/test_filter.py (100%) diff --git a/Altoids_Tin.jpg b/screenshots/Altoids_Tin.jpg similarity index 100% rename from Altoids_Tin.jpg rename to screenshots/Altoids_Tin.jpg diff --git a/Breadboard.jpg b/screenshots/Breadboard.jpg similarity index 100% rename from Breadboard.jpg rename to screenshots/Breadboard.jpg diff --git a/tools_and_scripts/g27calib_release.cmd b/tools_and_scripts/g27calib_release.cmd new file mode 100644 index 0000000..2a4ef5a --- /dev/null +++ b/tools_and_scripts/g27calib_release.cmd @@ -0,0 +1,20 @@ +REM g27calib release script +REM usage: g27calib_release.bat + +%1 -m venv g27calib || exit /B 1 + +.\g27calib\Scripts\pip install https://github.com/n-e-y-s/G27_Pedals_and_Shifter/archive/%2.zip || exit /B 1 +.\g27calib\Scripts\pip install pyinstaller pywin32 || exit /B 1 + +echo from g27_pedals_and_shifter_gui.calib import main > g27calib.py +echo if __name__ == "__main__": >> g27calib.py +echo main() >> g27calib.py + +.\g27calib\Scripts\pyinstaller.exe -w --clean .\g27calib.py || exit /B 1 + +cd dist +"C:\Program Files\7-Zip\7z.exe" a g27calib.zip g27calib || exit /B 1 +cd .. +move dist\g27calib.zip . || exit /B 1 + + diff --git a/G27_Pedals_and_Shifter/src/test_filter.py b/tools_and_scripts/test_filter.py similarity index 100% rename from G27_Pedals_and_Shifter/src/test_filter.py rename to tools_and_scripts/test_filter.py