Skip to content

Commit 86a1ef8

Browse files
committed
ci skip: win32: more fixes to create-app-windows.sh
1 parent 0d8ba9b commit 86a1ef8

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tools/create-app-windows.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,12 @@ echo "Creating native launcher executable..."
124124

125125
# Generate C source code
126126
echo " =========== "
127-
pwd
128-
ls $SCORE_SOURCE_DIR
129-
ls $SCORE_SOURCE_DIR/tools
130-
ls $SCORE_SOURCE_DIR/tools/launcher
131127
cp "$SCORE_SOURCE_DIR/tools/launcher/launcher.c" launcher.c
132128
cat > launcher-defines.h << EOF
133129
#pragma once
134130
135-
#define MAIN_QML \"${MAIN_QML}\"
136-
#define SCORE_FILE \"${SCORE_BASENAME}\"
131+
#define MAIN_QML "${MAIN_QML}"
132+
#define SCORE_FILE "${SCORE_BASENAME}"
137133
#define HAS_AUTOPLAY $([[ -n "$AUTOPLAY" ]] && echo 1 || echo 0)
138134
#define HAS_SCORE $([[ -n "${SCORE_BASENAME}" ]] && echo 1 || echo 0)
139135
@@ -162,14 +158,15 @@ else
162158
exit 1
163159
fi
164160

165-
$COMPILER -O2 -s -mwindows -o "${APP_NAME}.exe" launcher.c
161+
$COMPILER -O2 -o "${APP_NAME}.exe" launcher.c
166162
rm -f launcher.c launcher-defines.h
167163

168164
# Set icon and properties
169165
if [[ -f "${APP_ICON_ICO}" ]]; then
170-
./rcedit.exe "${APP_NAME}" --set-icon "${APP_ICON_ICO}" --set-file-version "${APP_VERSION}"
171-
./rcedit.exe "app-bin.exe" --set-icon "${APP_ICON_ICO}" --set-file-version "${APP_VERSION}"
166+
"$WORK_DIR/rcedit.exe" "${APP_NAME}" --set-icon "${APP_ICON_ICO}" --set-file-version "${APP_VERSION}"
167+
"$WORK_DIR/rcedit.exe" "app-bin.exe" --set-icon "${APP_ICON_ICO}" --set-file-version "${APP_VERSION}"
172168
fi
169+
173170
# Go back to work directory
174171
cd "$WORK_DIR"
175172

0 commit comments

Comments
 (0)