Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Jun 30, 2024
1 parent 8a72f0e commit 6706b85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/expo-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
- name: Generate TestApp
run: |
bun link
cd ..
bunx create-expo-app -t blank@@sdk-51 TestApp
cd TestApp
bun add v8-android-jit
bun link react-native-v8 --save
jq '.expo.android.package = "com.testapp" | .expo.plugins += ["react-native-v8"] | .expo.jsEngine = "jsc"' app.json > app.json.tmp && mv -f app.json.tmp app.json
echo 'if (global._v8runtime) { console.log(`=== V8 version[${global._v8runtime().version}] ===`); }' >> App.js
working-directory: ..
- name: Build TestApp
working-directory: ../TestApp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/expo-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
- name: Generate TestApp
run: |
bun link
cd ..
bunx create-expo-app -t blank@@sdk-51 TestApp
cd TestApp
bun add v8-ios
bun link react-native-v8 --save
jq '.expo.ios.bundleIdentifier = "com.testapp" | .expo.plugins += [["react-native-v8", {"ios":true}]] | .expo.jsEngine = "jsc"' app.json > app.json.tmp && mv -f app.json.tmp app.json
echo 'if (global._v8runtime) { console.log(`=== V8 version[${global._v8runtime().version}] ===`); }' >> App.js
working-directory: ..
- name: Build TestApp
working-directory: ../TestApp
Expand Down
3 changes: 2 additions & 1 deletion scripts/gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ def main():
subprocess.run(
["bun", "link"],
)
print(["bunx", "@react-native-community/cli", "init", args.project_dir, "--version", args.rn_version])
subprocess.run(
["bunx", "@react-native-community/cli", "init", args.project_dir, "--pm", "bun", "--version", args.rn_version]
["bunx", "@react-native-community/cli", "init", args.project_dir, "--version", args.rn_version]
)

os.chdir(args.project_dir)
Expand Down

0 comments on commit 6706b85

Please sign in to comment.