Skip to content

Commit 0d8ba9b

Browse files
committed
ci skip: launcher: fix path in windows script
1 parent 00cebe5 commit 0d8ba9b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

tools/create-app-windows.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ mv score.exe app-bin.exe
123123
echo "Creating native launcher executable..."
124124

125125
# Generate C source code
126-
cp launcher/launcher.c launcher.c
126+
echo " =========== "
127+
pwd
128+
ls $SCORE_SOURCE_DIR
129+
ls $SCORE_SOURCE_DIR/tools
130+
ls $SCORE_SOURCE_DIR/tools/launcher
131+
cp "$SCORE_SOURCE_DIR/tools/launcher/launcher.c" launcher.c
127132
cat > launcher-defines.h << EOF
128133
#pragma once
129134
@@ -132,10 +137,10 @@ cat > launcher-defines.h << EOF
132137
#define HAS_AUTOPLAY $([[ -n "$AUTOPLAY" ]] && echo 1 || echo 0)
133138
#define HAS_SCORE $([[ -n "${SCORE_BASENAME}" ]] && echo 1 || echo 0)
134139
135-
#define SCORE_CUSTOM_APP_ORGANIZATION_NAME "$SCORE_CUSTOM_APP_ORGANIZATION_NAME"
136-
#define SCORE_CUSTOM_APP_ORGANIZATION_DOMAIN "$SCORE_CUSTOM_APP_ORGANIZATION_DOMAIN"
137-
#define SCORE_CUSTOM_APP_APPLICATION_NAME "$SCORE_CUSTOM_APP_APPLICATION_NAME"
138-
#define SCORE_CUSTOM_APP_APPLICATION_VERSION "$SCORE_CUSTOM_APP_APPLICATION_VERSION"
140+
#define SCORE_CUSTOM_APP_ORGANIZATION_NAME "$APP_ORGANIZATION"
141+
#define SCORE_CUSTOM_APP_ORGANIZATION_DOMAIN "$APP_DOMAIN"
142+
#define SCORE_CUSTOM_APP_APPLICATION_NAME "$APP_NAME"
143+
#define SCORE_CUSTOM_APP_APPLICATION_VERSION "$APP_VERSION"
139144
140145
EOF
141146

tools/create-app.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ export OUTPUT_DIR
322322
export RELEASE_TAG
323323
export LOCAL_INSTALLER
324324
export WORK_DIR
325+
export SCRIPT_DIR
326+
export SCORE_SOURCE_DIR
325327

326328
# Build for each platform
327329
for platform in "${PLATFORMS[@]}"; do

0 commit comments

Comments
 (0)