mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Fix Windows Android app scripts (#1058)
* Fix Windows Android app scripts * ci: skip onnxruntime CUDA download
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -12,6 +12,11 @@ concurrency:
|
|||||||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
# CI does not use the CUDA execution provider, and the onnxruntime-node
|
||||||
|
# postinstall download from NuGet is large enough to make npm ci flaky.
|
||||||
|
ONNXRUNTIME_NODE_INSTALL: skip
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -27,12 +27,12 @@ Or from `packages/app`:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Debug
|
# Debug
|
||||||
APP_VARIANT=development npx expo prebuild --platform android --non-interactive
|
npx cross-env APP_VARIANT=development expo prebuild --platform android --non-interactive
|
||||||
APP_VARIANT=development npx expo run:android --variant=debug
|
npx cross-env APP_VARIANT=development expo run:android --variant=debug
|
||||||
|
|
||||||
# Release
|
# Release
|
||||||
APP_VARIANT=production npx expo prebuild --platform android --non-interactive
|
npx cross-env APP_VARIANT=production expo prebuild --platform android --non-interactive
|
||||||
APP_VARIANT=production npx expo run:android --variant=release
|
npx cross-env APP_VARIANT=production expo run:android --variant=release
|
||||||
|
|
||||||
# Clear generated Android project
|
# Clear generated Android project
|
||||||
rm -rf android
|
rm -rf android
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "APP_VARIANT=development expo start",
|
"start": "cross-env APP_VARIANT=development expo start",
|
||||||
"reset-project": "node ./scripts/reset-project.js",
|
"reset-project": "node ./scripts/reset-project.js",
|
||||||
"build:workspace-deps": "npm run build --workspace=@getpaseo/highlight && npm run build --workspace=@getpaseo/expo-two-way-audio",
|
"build:workspace-deps": "npm run build --workspace=@getpaseo/highlight && npm run build --workspace=@getpaseo/expo-two-way-audio",
|
||||||
"eas-build-post-install": "npm run build:workspace-deps",
|
"eas-build-post-install": "npm run build:workspace-deps",
|
||||||
"android": "npm run android:development",
|
"android": "npm run android:development",
|
||||||
"android:development": "APP_VARIANT=development expo prebuild --platform android --non-interactive && APP_VARIANT=development expo run:android --variant=debug",
|
"android:development": "cross-env APP_VARIANT=development expo prebuild --platform android --non-interactive && cross-env APP_VARIANT=development expo run:android --variant=debug",
|
||||||
"android:production": "APP_VARIANT=production expo prebuild --platform android --non-interactive && APP_VARIANT=production expo run:android --variant=release",
|
"android:production": "cross-env APP_VARIANT=production expo prebuild --platform android --non-interactive && cross-env APP_VARIANT=production expo run:android --variant=release",
|
||||||
"android:release": "npm run android:production",
|
"android:release": "npm run android:production",
|
||||||
"android:clear": "node -e \"require('node:fs').rmSync('android', { recursive: true, force: true })\"",
|
"android:clear": "node -e \"require('node:fs').rmSync('android', { recursive: true, force: true })\"",
|
||||||
"ios": "expo run:ios",
|
"ios": "expo run:ios",
|
||||||
|
|||||||
Reference in New Issue
Block a user