-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmaui-preparebuild.sh
31 lines (22 loc) · 1.16 KB
/
maui-preparebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
config=$1
cleanWidgets=$2
publish=$3
KeyCheck/bin/Release/net9.0/publish/KeyCheck SimpleWeather.Shared/Keys
KeyCheck/bin/Release/net9.0/publish/KeyCheck SimpleWeather.Weather-API/Keys
cd Maui/SimpleWeather.Maui.AppWidget
if [ "$cleanWidgets" = "clean" ]; then
xcodebuild clean; rm -rf DerivedData
fi
scheme="SimpleWeather-Extensions-Dev"
if [ "$publish" = "publish" ]; then
scheme="SimpleWeather-Extensions"
fi
xcodebuild build -configuration $config -scheme "$scheme" -sdk iphonesimulator
xcodebuild build -configuration $config -scheme "$scheme" -sdk iphoneos
xcodebuild build -configuration $config -scheme "$scheme" -sdk macosx -destination 'platform=macOS,variant=Mac Catalyst' SUPPORTS_MACCATALYST=YES SKIP_INSTALL=NO
cd ../SimpleWeather.Maui
../../EditManifest/bin/Release/net9.0/publish/EditManifest Platforms/iOS/Info.plist "$config"
../../EditManifest/bin/Release/net9.0/publish/EditManifest Platforms/iOS/Entitlements.plist "$config"
../../EditManifest/bin/Release/net9.0/publish/EditManifest Platforms/MacCatalyst/Info.plist "$config"
../../EditManifest/bin/Release/net9.0/publish/EditManifest Platforms/MacCatalyst/Entitlements.plist "$config"