Skip to content

Commit 5738f3c

Browse files
committed
build: fetch artifacts from github
Signed-off-by: Luca Vaccaro <me@lvaccaro.com>
1 parent 8f5c06d commit 5738f3c

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

fetch_artifacts.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
# Manually fetch and edit lwk repository
4+
5+
REPO=https://github.com/lvaccaro/lwk-rn
6+
TAG=0.9.0
7+
8+
ANDROID_URL=$REPO/releases/download/$TAG/lwk-android-artifact.zip
9+
wget $ANDROID_URL
10+
unzip -o lwk-android-artifact.zip -d android
11+
rm -rf lwk-android-artifact.zip
12+
13+
IOS_URL=$REPO/releases/download/$TAG/lwk-ios-artifact.zip
14+
wget $IOS_URL
15+
unzip -o lwk-ios-artifact.zip -d LwkRnFramework.xcframework
16+
rm -rf lwk-ios-artifact.zip

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@
2020
"files": [
2121
"src",
2222
"lib",
23-
"android",
2423
"ios",
25-
"LwkRnFramework.xcframework",
2624
"cpp",
2725
"*.podspec",
2826
"react-native.config.js",
27+
"!LwkRnFramework.xcframework",
2928
"!ios/build",
3029
"!android/build",
3130
"!android/gradle",
3231
"!android/gradlew",
3332
"!android/gradlew.bat",
3433
"!android/local.properties",
34+
"!android/src/main/jniLibs",
3535
"!**/__tests__",
3636
"!**/__fixtures__",
3737
"!**/__mocks__",
@@ -48,7 +48,8 @@
4848
"lint": "eslint \"**/*.{js,ts,tsx}\"",
4949
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
5050
"prepare": "bob build",
51-
"release": "release-it"
51+
"release": "release-it",
52+
"postinstall": "sh fetch_artifacts.sh"
5253
},
5354
"keywords": [
5455
"react-native",

0 commit comments

Comments
 (0)