-
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.
- Loading branch information
1 parent
15679b4
commit 7ac7413
Showing
12 changed files
with
50 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +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.ps1" | ||
$site_packages_path="$venv_path\Lib\site-packages" | ||
pip install pyinstaller | ||
pyinstaller --onefile --collect-data opengeodeweb_back --collect-data vease_back $bin_folder\app.py --distpath .\electron-server\back\dist -n vease-back --clean | ||
Copy-Item .\electron-server\back\dist\vease-back.exe .\ | ||
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 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
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,13 @@ | ||
$microservice_name=$args[0] | ||
echo "Installing $args requirements" | ||
|
||
$microservice_path=".\electron-server\$microservice_name" | ||
$venv_path="$microservice_path\venv" | ||
echo "Removing old virtual environment $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 | ||
echo "Activating virtual environment $venv_path\Scripts\Activate.ps1" | ||
python -m venv $venv_path | ||
"$venv_path\Scripts\Activate.ps1" | ||
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
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" | ||
$back_path=".\electron-server\viewer" | ||
$dist_path="$back_path\dist" | ||
$venv_path="$back_path\venv" | ||
"$venv_path\Scripts\Activate.ps1" | ||
$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-back.exe .\ |
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
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