mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2026-01-04 01:25:29 -05:00
20 lines
1.1 KiB
Bash
Executable file
20 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Run this if you regenerate and need to reconfigure platform specific make system project files
|
|
#
|
|
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
source $SCRIPTDIR/_script_common
|
|
|
|
# iOS: Set deployment target
|
|
sed -i '' 's/IPHONEOS_DEPLOYMENT_TARGET = [^;]*/IPHONEOS_DEPLOYMENT_TARGET = 12.4/g' $APPDIR/ios/Runner.xcodeproj/project.pbxproj
|
|
sed -i '' "s/platform :ios, '[^']*'/platform :ios, '12.4'/g" $APPDIR/ios/Podfile
|
|
|
|
# MacOS: Set deployment target
|
|
sed -i '' 's/MACOSX_DEPLOYMENT_TARGET = [^;]*/MACOSX_DEPLOYMENT_TARGET = 10.15.0/g' $APPDIR/macos/Runner.xcodeproj/project.pbxproj
|
|
sed -i '' "s/platform :osx, '[^']*'/platform :osx, '10.15.0'/g" $APPDIR/macos/Podfile
|
|
|
|
# Android: Set gradle plugin version
|
|
sed -i '' "s/classpath \'com.android.tools.build:gradle:[^\']*\'/classpath 'com.android.tools.build:gradle:8.13.2'/g" $APPDIR/android/build.gradle
|
|
|
|
# Android: Set gradle version
|
|
sed -i '' 's/distributionUrl=.*/distributionUrl=https:\/\/services.gradle.org\/distributions\/gradle-8.13-bin.zip/g' $APPDIR/android/gradle/wrapper/gradle-wrapper.properties
|