Skip to content

Commit 8d29f0b

Browse files
committed
Moved run script generation packaging step to macOS only
1 parent af90a85 commit 8d29f0b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

scripts/package.sh

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ SCRIPT_PATH=\$(dirname \"\$0\")
5555
SCRIPT_PATH=\$(cd \"\$SCRIPT_PATH\" && pwd)
5656
cd \"\$SCRIPT_PATH/Contents\" && ./$RUN_SCRIPT_NAME"
5757
chmod +x "$PKG_FILE"
58+
59+
# Add the run script
60+
generate_script "$PKG_FILE/$CONTENTS_DIR_NAME/$RUN_SCRIPT_NAME" "#!/bin/bash
61+
$ENV_VARS
62+
./$EXE_NAME"
5863
else
5964
# Create the package directory
6065
mkdir -p "$PKG_FILE"
6166
fi
6267
CONTENTS_DIR="$PKG_FILE/$CONTENTS_DIR_NAME"
6368

64-
# Add the run script
65-
generate_script "$CONTENTS_DIR/$RUN_SCRIPT_NAME" "#!/bin/bash
66-
$ENV_VARS
67-
./$EXE_NAME"
68-
6969
# Copy across all build directory to contents
7070
cp -r "$BUILD_DIR"/* "$CONTENTS_DIR"
7171

@@ -81,9 +81,3 @@ for EXCLUDE in $EXCLUDES; do
8181
rm -rf "$EXCLUDE_PATH"
8282
fi
8383
done
84-
85-
if [ -z "$( ls -A "$CONTENTS_DIR/lib" )" ]; then
86-
rm -rf "$CONTENTS_DIR/lib"
87-
fi
88-
89-
rm -rf "$CONTENTS_DIR/assets"

0 commit comments

Comments
 (0)