chore: update macOS icons and add build script
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
parent
ff67fb125b
commit
5ff3211c6d
19 changed files with 46 additions and 69 deletions
33
scripts/build-macos.sh
Executable file
33
scripts/build-macos.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/env bash
|
||||
git apply ./scripts/enable-android-google-services.patch
|
||||
FLUFFYCHAT_ORIG_GROUP="im.fluffychat"
|
||||
FLUFFYCHAT_ORIG_TEAM="4NXF6Z997G"
|
||||
#FLUFFYCHAT_NEW_GROUP="com.example.fluffychat"
|
||||
#FLUFFYCHAT_NEW_TEAM="ABCDE12345"
|
||||
|
||||
# In some cases (ie: running beta XCode releases) some pods haven't updated their minimum version
|
||||
# but XCode will reject the package for using too old of a minimum version.
|
||||
# This will fix that, but. Well. Use at your own risk.
|
||||
# export I_PROMISE_IM_REALLY_SMART=1
|
||||
|
||||
# If you want to automatically install the app
|
||||
# export FLUFFYCHAT_INSTALL_IPA=1
|
||||
|
||||
### Rotate IDs ###
|
||||
[ -n "${FLUFFYCHAT_NEW_GROUP}" ] && {
|
||||
# App group IDs
|
||||
sed -i "" "s/group.${FLUFFYCHAT_ORIG_GROUP}.app/group.${FLUFFYCHAT_NEW_GROUP}.app/g" "macos/Runner/Runner.entitlements"
|
||||
sed -i "" "s/group.${FLUFFYCHAT_ORIG_GROUP}.app/group.${FLUFFYCHAT_NEW_GROUP}.app/g" "macos/Runner.xcodeproj/project.pbxproj"
|
||||
# Bundle identifiers
|
||||
sed -i "" "s/${FLUFFYCHAT_ORIG_GROUP}.app/${FLUFFYCHAT_NEW_GROUP}.app/g" "macos/Runner.xcodeproj/project.pbxproj"
|
||||
}
|
||||
|
||||
[ -n "${FLUFFYCHAT_NEW_TEAM}" ] && {
|
||||
# Code signing team
|
||||
sed -i "" "s/${FLUFFYCHAT_ORIG_TEAM}/${FLUFFYCHAT_NEW_TEAM}/g" "macos/Runner.xcodeproj/project.pbxproj"
|
||||
}
|
||||
|
||||
### Make release build ###
|
||||
flutter build macos --release
|
||||
|
||||
cp /usr/local/Cellar/libolm/**/lib/libolm.3.dylib build/macos/Build/Products/Release/FluffyChat.app/Contents/MacOS/libolm.3.dylib
|
||||
8
scripts/prepare-macos.sh
Executable file
8
scripts/prepare-macos.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if ! type "flutter" > /dev/null; then
|
||||
brew install flutter
|
||||
fi
|
||||
|
||||
brew install libolm
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue