-
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 commit 'e27978a890f951417ae9c0a3099aeca155dee4f2' into nlogistic
- Loading branch information
Showing
13 changed files
with
324 additions
and
57 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
.ruff_cache/ | ||
.tox/ | ||
.vscode/ | ||
/bmds-desktop/ | ||
bmds_ui/static/bundles/ | ||
build/ | ||
/data/ | ||
|
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,4 +1,5 @@ | ||
recursive-include bmds_ui/ *css *.js *.json *.html *.md *.py | ||
recursive-include bmds_ui/static * | ||
recursive-include bmds_ui/templates * | ||
recursive-include bmds_ui/desktop/templates * | ||
global-exclude .DS_Store .gitkeep __pycache__ *.pyc |
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 @@ | ||
from .desktop.cli import main | ||
|
||
main() |
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
Empty file.
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,85 @@ | ||
@echo off | ||
|
||
:beginning | ||
echo: | ||
echo -------------------------------- | ||
echo BMDS Desktop Manager | ||
echo -------------------------------- | ||
echo: | ||
echo 1) Start BMDS Desktop | ||
echo 2) Update BMDS Desktop | ||
{% if show_prerelease %}echo 2p) Update BMDS Desktop (prerelease - EPA VPN required){% endif %} | ||
echo 3) Show diagnostic information | ||
echo: | ||
|
||
:loop | ||
set /p "id=Enter a number above, or q to quit: " | ||
if %id% == 1 goto :start | ||
if %id% == 2 goto :update | ||
{% if show_prerelease %}if %id% == 2p goto :update-prerelease{% endif %} | ||
if %id% == 3 goto :diagnostics | ||
if %id% == help goto :beginning | ||
if %id% == q goto :quit | ||
if %id% == Q goto :quit | ||
goto :loop | ||
|
||
:start | ||
"{{ python_path }}" -m bmds_ui | ||
goto :beginning | ||
|
||
:update | ||
echo Updating BMDS Desktop | ||
"{{ python_path }}" -m ensurepip > nul 2>&1 | ||
"{{ python_path }}" -m pip install -U -q pip | ||
echo: | ||
echo Current version: | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo: | ||
echo This may take a while, wait until you see "Update complete!" | ||
echo Updating ... | ||
"{{ python_path }}" -m pip install -U -q bmds-ui | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo: | ||
echo Update complete! | ||
pause | ||
goto :beginning | ||
|
||
{% if show_prerelease %} | ||
:update-prerelease | ||
echo Updating BMDS Desktop (prerelease - EPA VPN required) | ||
echo: | ||
"{{ python_path }}" -m ensurepip > nul 2>&1 | ||
"{{ python_path }}" -m pip install -U -q pip | ||
echo: | ||
echo Current version: | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo: | ||
echo This may take a while, wait until you see "Update complete!" | ||
echo Updating ... | ||
"{{ python_path }}" -m pip install -q -U bmds-ui --index-url {{prerelease_url}} | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo: | ||
echo Update complete! | ||
pause | ||
goto :beginning | ||
{% endif %} | ||
|
||
:diagnostics | ||
echo: | ||
echo Diagnostic Installation Information: | ||
echo ------------------------------------ | ||
echo: | ||
echo Python Version: | ||
"{{ python_path }}" --version -VV | ||
echo: | ||
echo Python Path: | ||
echo {{ python_path }} | ||
echo: | ||
echo BMDS UI + pybmds Version: | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo: | ||
pause | ||
goto :beginning | ||
|
||
:quit | ||
pause |
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,107 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
write_instructions(){ | ||
echo | ||
echo "--------------------------------" | ||
echo " BMDS Desktop Manager" | ||
echo "--------------------------------" | ||
echo | ||
echo "1) Start BMDS Desktop" | ||
echo "2) Update BMDS Desktop" | ||
{% if show_prerelease %}echo "2p) Update BMDS Desktop (prerelease - EPA VPN required)"{% endif %} | ||
echo "3) Show diagnostic information" | ||
echo | ||
} | ||
|
||
pause(){ | ||
read -n 1 -p "Press any key to continue..." | ||
} | ||
|
||
start(){ | ||
"{{ python_path }}" -m bmds_ui | ||
write_instructions | ||
} | ||
|
||
update(){ | ||
echo "Updating BMDS Desktop" | ||
echo "---------------------" | ||
"{{ python_path }}" -m ensurepip &> /dev/null | ||
"{{ python_path }}" -m pip install -U -q pip | ||
echo | ||
echo Current version: | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo | ||
echo "This may take a while, wait until you see \"Update complete!\"" | ||
echo "Updating ..." | ||
"{{ python_path }}" -m pip install -U -q bmds-ui | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo | ||
echo "Update complete!" | ||
pause | ||
write_instructions | ||
} | ||
|
||
{% if show_prerelease %}update_pre(){ | ||
echo "Updating BMDS Desktop (prerelease - EPA VPN required)" | ||
echo "-----------------------------------------------------" | ||
echo | ||
"{{ python_path }}" -m ensurepip &> /dev/null | ||
"{{ python_path }}" -m pip install -U -q pip | ||
echo | ||
echo "Current version:" | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo | ||
echo "This may take a while, wait until you see \"Update complete!\"" | ||
echo "Updating ..." | ||
"{{ python_path }}" -m pip install -q -U bmds-ui --index-url {{prerelease_url}} | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo | ||
echo "Update complete!" | ||
pause | ||
write_instructions | ||
}{% endif %} | ||
|
||
diagnostic(){ | ||
echo | ||
echo "Diagnostic Installation Information:" | ||
echo "------------------------------------" | ||
echo | ||
echo "Python Version:" | ||
"{{ python_path }}" --version -VV | ||
echo | ||
echo "Python Path:" | ||
echo "{{ python_path }}" | ||
echo | ||
echo "BMDS UI + pybmds Version:" | ||
"{{ python_path }}" -m pip show bmds-ui pybmds | ||
echo | ||
pause | ||
write_instructions | ||
} | ||
|
||
valid_input=0 | ||
write_instructions | ||
while [ $valid_input -eq 0 ]; do | ||
read -p "Enter a number above, or q to quit: " user_input | ||
if [[ $user_input == "q" || $user_input == "Q" || $user_input == "quit" || $user_input == "exit" ]]; then | ||
valid_input=1 | ||
fi | ||
if [[ $user_input == "help" ]]; then | ||
write_instructions | ||
fi | ||
if [[ $user_input == "1" ]]; then | ||
start | ||
fi | ||
if [[ $user_input == "2" ]]; then | ||
update | ||
fi | ||
{% if show_prerelease %}if [[ $user_input == "2p" ]]; then | ||
update_pre | ||
fi{%endif%} | ||
if [[ $user_input == "3" ]]; then | ||
diagnostic | ||
fi | ||
done | ||
pause |
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
Oops, something went wrong.