mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
platform specific asset generation
This commit is contained in:
parent
c70f63c005
commit
dca3c8face
6 changed files with 65 additions and 13 deletions
|
@ -9,19 +9,13 @@ flutter_launcher_icons:
|
||||||
# adaptive_icon_foreground: "assets/icon/foreground.png"
|
# adaptive_icon_foreground: "assets/icon/foreground.png"
|
||||||
adaptive_icon_monochrome: "assets/icon/app_icon_alpha.png"
|
adaptive_icon_monochrome: "assets/icon/app_icon_alpha.png"
|
||||||
|
|
||||||
ios: true
|
ios: false
|
||||||
image_path_ios: "assets/icon/icon.png"
|
|
||||||
remove_alpha_ios: true
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
generate: false
|
generate: false
|
||||||
image_path: "assets/icon/icon.png"
|
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
generate: true
|
generate: false
|
||||||
image_path: "assets/icon/icon.png"
|
|
||||||
icon_size: 48 # min:48, max:256, default: 48
|
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
generate: true
|
generate: false
|
||||||
image_path: assets/icon/macos-icon.png
|
|
17
scripts/app_config/platforms/ios/flutter_launcher_icons.yaml
Normal file
17
scripts/app_config/platforms/ios/flutter_launcher_icons.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# flutter pub run flutter_launcher_icons
|
||||||
|
flutter_launcher_icons:
|
||||||
|
|
||||||
|
android: false
|
||||||
|
|
||||||
|
ios: true
|
||||||
|
image_path_ios: "assets/icon/icon.png"
|
||||||
|
remove_alpha_ios: true
|
||||||
|
|
||||||
|
web:
|
||||||
|
generate: false
|
||||||
|
|
||||||
|
windows:
|
||||||
|
generate: false
|
||||||
|
|
||||||
|
macos:
|
||||||
|
generate: false
|
|
@ -0,0 +1,15 @@
|
||||||
|
# flutter pub run flutter_launcher_icons
|
||||||
|
flutter_launcher_icons:
|
||||||
|
android: false
|
||||||
|
|
||||||
|
ios: false
|
||||||
|
|
||||||
|
web:
|
||||||
|
generate: false
|
||||||
|
|
||||||
|
windows:
|
||||||
|
generate: false
|
||||||
|
|
||||||
|
macos:
|
||||||
|
generate: true
|
||||||
|
image_path: assets/icon/macos-icon.png
|
|
@ -0,0 +1,17 @@
|
||||||
|
# flutter pub run flutter_launcher_icons
|
||||||
|
flutter_launcher_icons:
|
||||||
|
|
||||||
|
android: false
|
||||||
|
|
||||||
|
ios: false
|
||||||
|
|
||||||
|
web:
|
||||||
|
generate: false
|
||||||
|
|
||||||
|
windows:
|
||||||
|
generate: true
|
||||||
|
image_path: "assets/icon/icon.png"
|
||||||
|
icon_size: 48 # min:48, max:256, default: 48
|
||||||
|
|
||||||
|
macos:
|
||||||
|
generate: false
|
|
@ -2,10 +2,17 @@
|
||||||
|
|
||||||
set -x -e
|
set -x -e
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "Usage: $0 <platform>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
APP_BUILD_PLATFORM=$1
|
||||||
|
|
||||||
# run icon and image generators
|
# run icon and image generators
|
||||||
pushd "${APP_PROJECT_ROOT_DIR}"
|
pushd "${APP_PROJECT_ROOT_DIR}"
|
||||||
flutter pub get
|
flutter pub get
|
||||||
#native splash screen not used
|
#native splash screen not used
|
||||||
#dart run flutter_native_splash:create
|
#dart run flutter_native_splash:create
|
||||||
dart run flutter_launcher_icons
|
dart run flutter_launcher_icons -f "${APP_PROJECT_ROOT_DIR}/scripts/app_config/platforms/${APP_BUILD_PLATFORM}/flutter_launcher_icons.yaml"
|
||||||
popd
|
popd
|
|
@ -88,14 +88,16 @@ if printf '%s\0' "${APP_NAMED_IDS[@]}" | grep -Fxqz -- "${APP_NAMED_ID}"; then
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
source "${APP_PROJECT_ROOT_DIR}/scripts/app_config/configure_${APP_NAMED_ID}.sh"
|
source "${APP_PROJECT_ROOT_DIR}/scripts/app_config/configure_${APP_NAMED_ID}.sh"
|
||||||
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/platforms/${APP_BUILD_PLATFORM}/platform_config.sh"
|
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/platforms/${APP_BUILD_PLATFORM}/platform_config.sh"
|
||||||
|
|
||||||
|
if [[ "$APP_BUILD_PLATFORM" != "linux" ]]; then
|
||||||
|
# run icon and image generators after project config has completed for non linux
|
||||||
|
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/asset_generators.sh" "${APP_BUILD_PLATFORM}"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Invalid app id: ${APP_NAMED_ID}"
|
echo "Invalid app id: ${APP_NAMED_ID}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run icon and image generators after project config has completed
|
|
||||||
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/asset_generators.sh"
|
|
||||||
|
|
||||||
if [ "$BUILD_CRYPTO_PLUGINS" -eq 0 ]; then
|
if [ "$BUILD_CRYPTO_PLUGINS" -eq 0 ]; then
|
||||||
if [[ "$APP_NAMED_ID" = "stack_wallet" ]]; then
|
if [[ "$APP_NAMED_ID" = "stack_wallet" ]]; then
|
||||||
./build_all.sh
|
./build_all.sh
|
||||||
|
|
Loading…
Reference in a new issue