From 178ecd15af737a3691e5c7cde5b80ce9e411b35c Mon Sep 17 00:00:00 2001 From: letwebdev Date: Sun, 26 Nov 2023 02:48:24 +0800 Subject: [PATCH] Try to fix npm scripts running in a subshell cause error: `sh: 1: source: not found` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29d62a8..fd371ed 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "setUp:capacitor-noSave": "npm install --no-save @capacitor/cli @capacitor/core @capacitor/android", "build:apk": "npm run sync && npm run build:apk-only", "sync": "npm run build && npm run sync-only", - "build:apk-only": "(source './.env' && cd ${CAPACITOR_ANDROID_PATH} && chmod +x ./gradlew && ./gradlew assembleDebug)", + "build:apk-only": "source './.env' && cd ${CAPACITOR_ANDROID_PATH} && chmod +x ./gradlew && ./gradlew assembleDebug", "sync-only": "cap sync", "setUp:electron": "npm install --save-dev electron electron-builder", "setUp:electron-noSave": "npm install --no-save electron electron-builder",