-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from Geode-solutions/feat/build_script
Feat/build script
- Loading branch information
Showing
26 changed files
with
110 additions
and
94 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
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,9 @@ | ||
echo "Building back microservice" | ||
$back_path=".\electron-server\back" | ||
$dist_path="$back_path\dist" | ||
$venv_path="$back_path\venv" | ||
. "$venv_path\Scripts\activate" | ||
$site_packages_path="$venv_path\Lib\site-packages" | ||
pip install pyinstaller | ||
pyinstaller --onefile --collect-data opengeodeweb_back --collect-data vease_back "$site_packages_path\vease_back\app.py" --distpath $dist_path -n vease-back --clean | ||
Copy-Item $dist_path\vease-back.exe .\ |
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,9 @@ | ||
#!/bin/bash | ||
back_path=./electron-server/back | ||
dist_path=$back_path/dist | ||
venv_path=$back_path/venv | ||
source $venv_path/bin/activate | ||
site_packages_path=$venv_path/lib/python3.10/site-packages | ||
pip install pyinstaller | ||
pyinstaller --onefile --collect-data opengeodeweb_back $site_packages_path/vease_back/app.py --distpath $dist_path -n vease-back --clean | ||
cp $dist_path/vease-back ./ |
File renamed without changes.
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,9 @@ | ||
$microservice_name=$args[0] | ||
echo "Compiling $args requirements" | ||
$microservice_path=".\electron-server\$microservice_name" | ||
$venv_path="$microservice_path\venv" | ||
python -m venv $venv_path | ||
Remove-Item -Recurse -Force "$microservice_path\requirements.txt" -ErrorAction:SilentlyContinue | ||
. "$venv_path\Scripts\activate" | ||
pip install pip-tools | ||
pip-compile "$microservice_path\requirements.in" |
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,11 @@ | ||
#!/bin/bash | ||
set -e | ||
microservice_name=$1 | ||
echo "Compiling $microservice_name requirements" | ||
microservice_path="./electron-server/$microservice_name" | ||
venv_path=$microservice_path/venv | ||
python3 -m venv $venv_path | ||
rm -rf $microservice_path/requirements.txt | ||
source $venv_path/bin/activate | ||
pip install pip-tools | ||
pip-compile $microservice_path/requirements.in |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
$microservice_name=$args[0] | ||
echo "Installing $args requirements" | ||
$microservice_path=".\electron-server\$microservice_name" | ||
$venv_path="$microservice_path\venv" | ||
echo "Installing in $venv_path" | ||
Remove-Item -Recurse -Force $venv_path -ErrorAction:SilentlyContinue | ||
Remove-Item -Recurse -Force "$microservice_path\dist\" -ErrorAction:SilentlyContinue | ||
Remove-Item -Recurse -Force "$microservice_path\build\" -ErrorAction:SilentlyContinue | ||
python -m venv $venv_path | ||
. "$venv_path\Scripts\activate" | ||
pip install -r "$microservice_path\requirements.txt" |
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,10 @@ | ||
#!/bin/bash | ||
set -e | ||
microservice_name=$1 | ||
echo "Installing $microservice_name requirements" | ||
microservice_path="./electron-server/$microservice_name" | ||
venv_path=$microservice_path/venv | ||
rm -rf $venv_path $microservice_path/dist $microservice_path/build | ||
python3 -m venv $venv_path | ||
source $venv_path/bin/activate | ||
pip install -r $microservice_path/requirements.txt |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
echo "Building viewer microservice" | ||
$viewer_path=".\electron-server\viewer" | ||
$dist_path="$viewer_path\dist" | ||
$venv_path="$viewer_path\venv" | ||
. "$venv_path\Scripts\activate" | ||
$site_packages_path="$venv_path\Lib\site-packages" | ||
pip install pyinstaller | ||
pyinstaller --onefile --collect-data opengeodeweb_viewer --collect-all vtkmodules "$site_packages_path\vease_viewer\app.py" --distpath $dist_path -n vease-viewer --clean | ||
Copy-Item $dist_path\vease-viewer.exe .\ |
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,9 @@ | ||
#!/bin/bash | ||
viewer_path=./electron-server/viewer | ||
dist_path=$viewer_path/dist | ||
venv_path=$viewer_path/venv | ||
source $venv_path/bin/activate | ||
site_packages_path=$venv_path/lib/python3.10/site-packages | ||
pip install pyinstaller | ||
pyinstaller --onefile --collect-data opengeodeweb_viewer --collect-all vtkmodules $site_packages_path/vease_viewer/app.py --distpath $dist_path -n vease-viewer --clean | ||
cp $dist_path/vease-viewer ./ |
File renamed without changes.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,10 +7,13 @@ | |
"scripts": { | ||
"dev": "npx [email protected] dev --no-fork", | ||
"generate": "nuxt generate", | ||
"compile_back": "node node_scripts/run_script_file.js --script_name=compile_back", | ||
"compile_viewer": "node node_scripts/run_script_file.js --script_name=compile_viewer", | ||
"install_back": "node node_scripts/run_script_file.js --script_name=install_back", | ||
"install_viewer": "node node_scripts/run_script_file.js --script_name=install_viewer", | ||
"compile_back": "node node_scripts/run_script_file.js compile back", | ||
"compile_viewer": "node node_scripts/run_script_file.js compile viewer", | ||
"install_back": "node node_scripts/run_script_file.js install back", | ||
"install_viewer": "node node_scripts/run_script_file.js install viewer", | ||
"build_back": "node node_scripts/run_script_file.js back/build", | ||
"build_viewer": "node node_scripts/run_script_file.js viewer/build", | ||
"build_microservices": "npm run build_back && npm run build_viewer", | ||
"build": "nuxi build --prerender", | ||
"test": "vitest", | ||
"package": "npm run build && electron-builder build --publish=never", | ||
|