-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/1724-upgrade-python-dependencies
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 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
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 @@ | ||
[submodule "installer"] | ||
path = installer | ||
url = https://github.com/AntaresSimulatorTeam/antares-web-installer.git |
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,26 @@ | ||
#!/bin/bash | ||
|
||
# Antares Desktop Installer | ||
# | ||
# This script must be run by ̀.github/worflows/deploy.yml`. | ||
# It builds the installer application and stores it in the package directory. | ||
|
||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | ||
PROJECT_DIR=$(dirname -- "${SCRIPT_DIR}") | ||
INSTALLER_DIR="${PROJECT_DIR}/installer" | ||
DIST_DIR="${PROJECT_DIR}/dist/package" | ||
|
||
# build package | ||
echo "INFO: Generating the Installer..." | ||
|
||
pushd ${INSTALLER_DIR} | ||
if [[ "$OSTYPE" == "msys"* ]]; then | ||
# For windows we build the GUI version | ||
hatch run pyinstaller:build_gui AntaresWebInstaller | ||
mv dist/AntaresWebInstaller ${DIST_DIR} | ||
else | ||
# For linux we build the command line version | ||
hatch run pyinstaller:build_cli AntaresWebInstallerCLI | ||
mv dist/AntaresWebInstallerCLI ${DIST_DIR} | ||
fi | ||
popd |