Skip to content

Commit

Permalink
build(manager): detect platform before shifting the arg array in pack…
Browse files Browse the repository at this point in the history
…age action (Jigsaw-Code#1500)

* fix(manager): detect platform before shifting the arg array in the package action

* Update package.action.sh

* Update src/server_manager/electron_app/package.action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* Update src/server_manager/electron_app/package.action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

---------

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
  • Loading branch information
daniellacosse and fortuna authored Feb 6, 2024
1 parent 64c4f94 commit 0fba65e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/server_manager/electron_app/package.action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function finish_yaml_files() {
function main() {
declare staging_percentage=100
declare version_name='0.0.0-debug'

for i in "$@"; do
case "${i}" in
--buildMode=*)
Expand All @@ -91,10 +92,11 @@ function main() {
echo "Unknown option: ${i}"
exit 1
;;
*) ;;
*) # Only supports having one positional argument.
PLATFORM="${i}"
;;
esac
done
PLATFORM="${1?Platform missing}"
run_action server_manager/electron_app/build --buildMode="${BUILD_MODE}" --versionName="${version_name}"
package_electron
finish_yaml_files "${staging_percentage}"
Expand Down

0 comments on commit 0fba65e

Please sign in to comment.