mirror of
https://github.com/DungeonPaper/dungeon-paper-app.git
synced 2026-05-17 17:58:11 +00:00
126 lines
5.2 KiB
YAML
126 lines
5.2 KiB
YAML
run_cond shell: /bin/zsh
|
|
scripts:
|
|
# ===============================================================================================
|
|
# Android
|
|
# ===============================================================================================
|
|
- name: android:build:apk
|
|
cmd: build android --build --apk
|
|
description: Build Android APK only
|
|
- name: android:build:bundle
|
|
cmd: build android --build --aab
|
|
description: Build Android unified bundle (for Play Store release)
|
|
- name: android:build:all
|
|
cmd: build android --build --apk --aab
|
|
description: Build Android unified bundle + standalone APK
|
|
- name: android:push
|
|
description: Push APK to ADB-connected device
|
|
cmd: build android --push
|
|
- name: android:install
|
|
cmd: build android --install
|
|
description: Install APK on Android (does not build)
|
|
- name: android:full
|
|
cmd: scr android:build:all --install --push
|
|
description: Build, push and install APK to ADB connected device
|
|
- name: android:release
|
|
cmd: build android --release
|
|
description: Builds, collects debug symbols, and places the output in release/ dir.
|
|
- name: android:symbols:collect
|
|
cmd: build android --symbols
|
|
description: Create a zip of the debug symbols for Android
|
|
|
|
# ===============================================================================================
|
|
# iOS
|
|
# ===============================================================================================
|
|
- name: ios:build:app
|
|
cmd: build ios --build --app
|
|
description: Build iOS APP file
|
|
- name: ios:build:bundle
|
|
cmd: build ios --build --ipa
|
|
description: Build iOS IPA file
|
|
- name: ios:build:all
|
|
cmd: build ios --build --app --ipa
|
|
description: Build iOS IPA + APP
|
|
- name: ios:pod:update
|
|
cmd: build ios --repo-update
|
|
description: Install Pods for iOS
|
|
- name: ios:release
|
|
cmd: build ios --release
|
|
description: Builds, and places the output in release/ dir.
|
|
|
|
# ===============================================================================================
|
|
# macOS
|
|
# ===============================================================================================
|
|
- name: macos:build:app
|
|
cmd: build macos --build
|
|
description: Build macOS App
|
|
- name: macos:build:all
|
|
cmd: macos:build:app
|
|
description: 'Alias for: Build macOS App'
|
|
- name: macos:pod:update
|
|
cmd: build macos --repo-update
|
|
description: Install Pods for macOS
|
|
- name: macos:release
|
|
cmd: build macos --build --pack
|
|
description: Builds, and places the output in release/ dir.
|
|
- name: macos:pack
|
|
description: Package macOS app into pkg file
|
|
cmd: build macos --pack
|
|
|
|
# ===============================================================================================
|
|
# Web
|
|
# ===============================================================================================
|
|
- name: web:build
|
|
cmd: build web --build
|
|
description: Build Web app
|
|
- name: web:publish
|
|
cmd: build web --publish
|
|
description: Publish web version using Firebase (requires build)
|
|
- name: web:release
|
|
cmd: build web --build --publish
|
|
description: Build & publish web version using Firebase
|
|
|
|
# ===============================================================================================
|
|
# All
|
|
# ===============================================================================================
|
|
- name: build
|
|
cmd: android:build:all && ios:build:all && macos:build:all && web:build:all
|
|
description: Build for all platforms
|
|
- name: apple:pod:update
|
|
cmd: macos:pod:update && ios:pod:update
|
|
description: Install Pods for macOS & iOS
|
|
|
|
# ===============================================================================================
|
|
# Utils
|
|
# ===============================================================================================
|
|
- name: build
|
|
cmd: . tool/build.sh
|
|
- name: format
|
|
cmd: dart format --line-length 120
|
|
description: Format all Dart files
|
|
- name: gen:icons
|
|
cmd: flutter pub run icons_launcher:create
|
|
description: Generate launcher icons
|
|
- name: gen:splash
|
|
cmd: flutter pub run flutter_native_splash:create
|
|
description: Generate splash screen
|
|
- name: gen:module
|
|
cmd: npx -y simple-scaffold@latest -c gen/scaffold.config.js -k module
|
|
description: Generate module from template. Append name to command. See simple-scaffold -h for help.
|
|
- name: gen:atom
|
|
cmd: npx -y simple-scaffold@latest -c gen/scaffold.config.js -k atom
|
|
description: Generate atom from template. Append name to command. See simple-scaffold -h for help.
|
|
- name: gen:molecule
|
|
cmd: npx -y simple-scaffold@latest -c gen/scaffold.config.js -k molecule
|
|
description: Generate molecule from template. Append name to command. See simple-scaffold -h for help.
|
|
- name: gen:organism
|
|
cmd: npx -y simple-scaffold@latest -c gen/scaffold.config.js -k organism
|
|
description: Generate organism from template. Append name to command. See simple-scaffold -h for help.
|
|
- name: intl:build
|
|
cmd: runner build -d
|
|
description: Build i18n files
|
|
- name: intl:watch
|
|
cmd: runner watch -d
|
|
description: Build u18n files in watch mode
|
|
- name: runner
|
|
cmd: dart run build_runner
|
|
description: Run Build Runner |