Commit a7d9d731 authored by Fernando Pizzabiocche's avatar Fernando Pizzabiocche

Makefile | adapt to sed for macOS

parent 76ac9a30
......@@ -36,11 +36,11 @@ shake:
adb shell input keyevent 82
bump-version:
sed -re 's/^(\s+versionCode) .*/\1 $(subst .,,$(version))/' -i android/app/build.gradle
sed -re 's/^(\s+versionName) ".*"/\1 "$(version)"/' -i android/app/build.gradle
sed -re 's/(android:versionCode)=".*"/\1="$(subst .,,$(version))"/' -i android/app/src/main/AndroidManifest.xml
sed -re 's/(android:versionName)=".*"/\1="$(version)"/' -i android/app/src/main/AndroidManifest.xml
sed -re 's,(<key>CFBundleShortVersionString</key><string)>.*(</string>),\1>$(version)\2,' -i ios/Lunar/Info.plist
sed -e 's/^(\s+versionCode) .*/\1 $(subst .,,$(version))/' -i '' android/app/build.gradle
sed -e 's/^(\s+versionName) ".*"/\1 "$(version)"/' -i '' android/app/build.gradle
sed -e 's/(android:versionCode)=".*"/\1="$(subst .,,$(version))"/' -i '' android/app/src/main/AndroidManifest.xml
sed -e 's/(android:versionName)=".*"/\1="$(version)"/' -i '' android/app/src/main/AndroidManifest.xml
sed -e 's,(<key>CFBundleShortVersionString</key><string)>.*(</string>),\1>$(version)\2,' -i '' ios/Lunar/Info.plist
$(apk_release): $(sources)
cd android ; ./gradlew assembleRelease --stacktrace
......@@ -53,10 +53,10 @@ yarn:
yarn
development: lib/const.js
sed -re "s/TEST = false/TEST = true/" -i lib/const.js
sed -e "s/TEST = false/TEST = true/" -i '' lib/const.js
production: lib/const.js
sed -re "s/TEST = true/TEST = false/" -i lib/const.js
sed -e "s/TEST = true/TEST = false/" -i '' lib/const.js
build: bump-version production yarn patches lib/const.js $(apk_release)
notify-send -u critical -i task-due -t 60000 -a Lunar "Compilación lista"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment