Try CI on a selfhosted macos runner #64

Merged
remoll merged 9 commits from fix/frontend/new-ci-attempt into main 2025-04-01 17:02:58 +00:00
2 changed files with 12 additions and 2 deletions
Showing only changes of commit bda87859ee - Show all commits

View File

@ -77,7 +77,7 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
// // Placeholders of keys that are replaced by the build system.
manifestPlaceholders += ['MAPS_API_KEY': System.getenv('GOOGLE_MAPS_API_KEY')]
manifestPlaceholders += ['MAPS_API_KEY': System.getenv('ANDROID_GOOGLE_MAPS_API_KEY')]
}

View File

@ -28,12 +28,22 @@ platform :ios do
readonly: true,
)
# replace secrets by real values, the stupid way
sh(
"sed",
"-i",
"",
"s/IOS_GOOGLE_MAPS_API_KEY/#{ENV["IOS_GOOGLE_MAPS_API_KEY"]}/g",
"../Runner/AppDelegate.swift"
)
sh(
"flutter",
"build",
"ipa",
"--debug",
"--release",
"--build-name=#{build_name}",
"--build-number=#{build_number}",
)