Skip to content

Commit 7b82af2

Browse files
committed
Add --no-{exe,msix} arguments to docker/build-windows.sh
1 parent 9be547f commit 7b82af2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docker/build-windows.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ function print_help() {
1010
echo " OUTPUT_DIRECTORY: Directory where artifacts will be stored"
1111
}
1212

13+
build_exe="--exe"
14+
build_msix="--msix"
15+
1316
while [[ "$#" -gt 0 ]]; do
1417
case $1 in
1518
-h) print_help; exit ;;
1619
--host) host="$2"; shift ;;
1720
-c|--commit) commit="$2"; shift ;;
21+
--no-exe) build_exe='' ;;
22+
--no-msix) build_msix='' ;;
1823
--out) out_dir="$2"; shift ;;
1924
*) echo "Unknown argument: $1"; print_help; exit 1 ;;
2025
esac
@@ -92,7 +97,7 @@ exe c:/ouisync-app/ouisync/bindings/dart dart tool/bindgen.dart
9297

9398
# Build Ouisync
9499
exe c:/ouisync-app dart pub get
95-
exe c:/ouisync-app dart run util/release.dart --flavor=production --sentry=C:/secrets/sentry_dsn --exe --msix
100+
exe c:/ouisync-app dart run util/release.dart --flavor=production --sentry=C:/secrets/sentry_dsn $build_exe $build_msix
96101

97102
# Collect artifacts. Hyper-V doesn't allow `docker cp` from a running container, so using scp
98103
function setup_sshd() {

0 commit comments

Comments
 (0)