Skip to content

Commit

Permalink
fix(CICD): remove if os
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienChampagnol committed Jun 19, 2024
1 parent 37bad70 commit 8e56d95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions electron-server/install_back.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ set -e
rm -rf electron-server/venv_back electron-server/dist_back electron-server/build electron-server/requirements_back.txt
folder=electron-server/venv_back
python3 -m venv $folder
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
bin_folder=$folder/bin
source $bin_folder/activate
elif [[ "$OSTYPE" == "msys" ]]; then
bin_folder=$folder/Scripts
$bin_folder/activate.bat
fi
bin_folder=$folder/bin
source $bin_folder/activate
pip install pip-tools
pip-compile electron-server/requirements_back.in
pip install -r electron-server/requirements_back.txt
pip install pyinstaller
ls -R electron-server/venv_back
pyinstaller --onefile --collect-data opengeodeweb_back $bin_folder/geodeapp_back --distpath electron-server/dist_back
10 changes: 2 additions & 8 deletions electron-server/install_viewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ set -e
rm -rf electron-server/venv_viewer electron-server/dist_back electron-server/build electron-server/requirements_viewer.txt
folder=electron-server/venv_viewer
python3 -m venv $folder
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
bin_folder=$folder/bin
source $bin_folder/activate
elif [[ "$OSTYPE" == "msys" ]]; then
bin_folder=$folder/Scripts
$bin_folder/activate.bat
fi
bin_folder=$folder/bin
source $bin_folder/activate
pip install pip-tools
pip-compile electron-server/requirements_viewer.in
pip install -r electron-server/requirements_viewer.txt
pip install pyinstaller
ls -R electron-server/venv_viewer
pyinstaller --onefile --collect-data opengeodeweb_viewer --collect-all vtkmodules $bin_folder/geodeapp_viewer --distpath electron-server/dist_viewer

0 comments on commit 8e56d95

Please sign in to comment.