Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmx committed Sep 14, 2024
1 parent dd15af0 commit 2cd323e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import os from 'os';
const dev = process.argv.includes('--dev');
const install = process.argv.includes('--install');
const gradlew = path.join('gradlew');
console.log(gradlew);

(async () => {
try {
Expand All @@ -15,7 +16,7 @@ const gradlew = path.join('gradlew');
} else {
await execCommand('vite build && npx cap sync');
}
await execCommand(`cd android && ${gradlew} ${install ? 'installDebug' : 'assembleDebug'}`);
await execCommand(`cd android && ./gradlew ${install ? 'installDebug' : 'assembleDebug'}`);
if (dev) await updateAppId();
} catch (e) {
updateAppId();
Expand Down

0 comments on commit 2cd323e

Please sign in to comment.