-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(installer): add installer as a submodule (#2110)
The installer is now packaged together with antares desktop. For windows, we provide the GUI version, for linux we only provide the command line version. Installer code is added as a git submodule and built with its hatch build system. JIRA ANT-1966 --------- Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com> Co-authored-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>
- 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 |