Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetingyuan committed Dec 24, 2023
1 parent 133dd12 commit 4837d83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm install
run: npm install --force
- name: Run test script
run: npm test
- name: Send failed message to wx
Expand Down
10 changes: 8 additions & 2 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ await spinner('checking env...', async () => {
assert.equal(d, 'OK', chalk.red('Can not access Expo Api'))
})

await $`npm ping && npm whoami --registry=https://registry.npmjs.org/`
await $`npm ping`
await $`npm whoami --registry=https://registry.npmjs.org/`

await $`git ls-remote https://github.com/lovetingyuan/minibili.git`

Expand Down Expand Up @@ -161,7 +162,12 @@ echo(chalk.blue('download apk file...'))

try {
await spinner('downloading apk file...', async () => {
await $`rm -rf apk && mkdir -p apk`
if (process.platform === 'win32') {
await $`rd /s /q apk`
await $`mkdir apk`
} else {
await $`rm -rf apk && mkdir -p apk`
}
return retry(
3,
() => $`wget ${apkUrl} -q -O ./apk/minibili-${newVersion}.apk`,
Expand Down

0 comments on commit 4837d83

Please sign in to comment.