@@ -59,7 +59,7 @@ dock run -d --rm --name $container_name $image_name \
5959 sh -c ' sleep 60; while [ -n "$(find /tmp/alive -cmin -10)" ]; do sleep 10; done'
6060
6161# Prevent the container from stopping
62- while true ; do exe / touch /tmp/alive || true ; sleep 14; done &
62+ while true ; do exe touch /tmp/alive || true ; sleep 14; done &
6363keep_alive_pid=$!
6464
6565# Enter the container on exit
@@ -75,7 +75,7 @@ function on_exit() {
7575# Set up secrets inside the container
7676if [ " $flavor " != unofficial ]; then
7777 function exe_i() { dock exec -i $container_name " $@ " ; }
78- exe / mkdir -p /opt/secrets
78+ exe mkdir -p /opt/secrets
7979 echo " $secretKeystoreHex " | xxd -p -r | exe_i dd of=/opt/secrets/keystore.jks
8080 echo " storePassword=$secretStorePassword " | exe_i dd of=/opt/secrets/key.properties
8181 echo " keyPassword=$secretKeyPassword " | exe_i dd of=/opt/secrets/key.properties oflag=append conv=notrunc
9494fi
9595
9696# Generate bindings (TODO: This should be done automatically)
97- exe /opt/ouisync-app/ouisync/bindings/dart dart pub get
98- exe /opt/ouisync-app/ouisync/bindings/dart dart tool/bindgen.dart
97+ exe -d /opt/ouisync-app/ouisync/bindings/dart dart pub get
98+ exe -d /opt/ouisync-app/ouisync/bindings/dart dart tool/bindgen.dart
9999
100100# Build Ouisync app
101- exe /opt/ouisync-app dart pub get
102- exe /opt/ouisync-app dart run util/release.dart \
101+ exe -d /opt/ouisync-app dart pub get
102+ exe -d /opt/ouisync-app dart run util/release.dart \
103103 --flavor=$flavor \
104104 $arg_android_key_properties \
105105 $arg_sentry \
@@ -108,6 +108,6 @@ exe /opt/ouisync-app dart run util/release.dart \
108108# Collect artifacts
109109mkdir -p $dst_dir
110110src_dir=/opt/ouisync-app/releases/latest
111- for artifact in $( exe $src_dir ls) ; do
111+ for artifact in $( exe -d $src_dir ls) ; do
112112 dock cp $container_name :$src_dir /$artifact $dst_dir /
113113done
0 commit comments