Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(installer): add installer as a submodule #2110

Merged
merged 34 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
11b6cae
feat(installer): add installer as a submodule
maugde Aug 1, 2024
b01bb27
feat(installer): add installer as a submodule
maugde Aug 1, 2024
d17a8f3
Merge remote-tracking branch 'origin/feature/add-installer-submodule'…
maugde Aug 7, 2024
9b6f2d9
feat(installer): add installer as a submodule
maugde Aug 1, 2024
5fae646
ci(workflow): add installer build
maugde Aug 19, 2024
4813c0b
Merge remote-tracking branch 'origin/feature/add-installer-submodule'…
maugde Aug 19, 2024
41ef5c8
feat(installer): add installer as a submodule
maugde Aug 1, 2024
d59efea
ci(workflow): add installer build
maugde Aug 19, 2024
87970fe
ci(deploy): separate installer build from main project build
maugde Aug 22, 2024
b74c443
Merge remote-tracking branch 'origin/feature/add-installer-submodule'…
maugde Aug 22, 2024
208f2dc
ci(deploy): remove unecessary lines in `deploy.yml`
maugde Aug 22, 2024
8db3a45
ci(deploy): remove `installer/requirement.txt` installation in `deplo…
maugde Aug 22, 2024
4cb782c
ci(workflow): fix deploy workflow
maugde Aug 23, 2024
a75f7e0
build: use relative paths in coverage report (#2125)
sylvlecl Aug 21, 2024
24e5516
feat(ts-gen): add timeseries generation for thermal clusters (#2112)
MartinBelthle Aug 21, 2024
50025df
ci(workflow): add installer build
maugde Aug 19, 2024
6f987ac
Merge branch 'dev' into feature/add-installer-submodule
maugde Aug 23, 2024
85c265c
build: remove auto-generated changelog from desktop package (#2126)
sylvlecl Aug 23, 2024
24e8e8f
ci(deploy): separate installer build from main project build
maugde Aug 22, 2024
c7890fd
ci(workflow): fix deploy workflow
maugde Aug 23, 2024
2027624
ci(workflow): add installer build script and fix deploy workflow
maugde Aug 23, 2024
f61ef67
ci(workflow): remove duplicate workflow step
maugde Aug 23, 2024
4e2f8f9
Merge branch 'dev' into feature/add-installer-submodule
maugde Aug 26, 2024
8ab67b7
Merge branch 'dev' into feature/add-installer-submodule
maugde Aug 27, 2024
cc1d394
Merge branch 'dev' into feature/add-installer-submodule
maugde Aug 27, 2024
5f14724
Checkout submodules to build installer
sylvlecl Aug 28, 2024
dcd1109
Fix venv init on windows
sylvlecl Aug 28, 2024
eb77213
Update installer submodule (should fix requirements)
sylvlecl Aug 28, 2024
945effc
Update installer requirements
sylvlecl Aug 28, 2024
88e3d32
Try to use hatch as in installer repo
sylvlecl Aug 29, 2024
adbdd6a
Fix hatch script for windows
sylvlecl Aug 29, 2024
13b4e61
Add execution permissions for installer packaging script
sylvlecl Aug 29, 2024
c9d0faa
Remove workflow execution for current branch
sylvlecl Aug 29, 2024
880dc0a
Update installer submodule (requirements.txt removed)
sylvlecl Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true

- name: 🔗 Install wget for Windows
if: matrix.os == 'windows-latest'
Expand Down Expand Up @@ -57,6 +58,13 @@ jobs:
run: bash ./package_antares_web.sh
working-directory: scripts

- name: Add installer to package
shell: bash
run: |
pip install hatch
./package_antares_installer.sh
working-directory: scripts

- name: 📜️ Copy changelog file
run: |
cp docs/CHANGELOG.md dist/package/CHANGELOG.md
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
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
1 change: 1 addition & 0 deletions installer
Submodule installer added at 76c0ab
26 changes: 26 additions & 0 deletions scripts/package_antares_installer.sh
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
Loading