-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58f4108
commit 09ff315
Showing
10 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
services: | ||
server: | ||
image: a-server:latest | ||
build: !reset null | ||
ports: | ||
- ${SERVER_PORT}:${SERVER_PORT} | ||
profiles: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
URL=$1 | ||
FLAVOR=$2 | ||
FLAVOR="g-$FLAVOR" | ||
IS_PROD="true" | ||
|
||
# 自动根据系统环境设置换行符格式 | ||
use_windows_newline=false | ||
|
||
# 检测操作系统 | ||
if [[ "$(uname -s)" =~ MINGW|CYGWIN|MSYS ]]; then | ||
use_windows_newline=true | ||
fi | ||
|
||
# 设置换行符变量 | ||
newline="\n" | ||
|
||
if [ "$use_windows_newline" = true ]; then | ||
newline="\r\n" | ||
fi | ||
|
||
cat > "./$FLAVOR.env" <<EOF | ||
SERVER_URL=${URL}${newline} | ||
WS_SERVER_URL=${URL}${newline} | ||
EOF | ||
|
||
./scripts/tool_scripts/modify-flavor.sh "$FLAVOR" "$IS_PROD" | ||
|
||
sh gradlew composeApp:build | ||
|
||
mkdir -p "build/outputs/apk/release" | ||
|
||
mv composeApp/build/outputs/apk/release/*.apk "build/outputs/apk/release/$FLAVOR.apk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters