Skip to content

Commit

Permalink
feat: build release (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: linxiaodong <[email protected]>
  • Loading branch information
buxuku and linxiaodong authored Jun 11, 2024
1 parent 60442e3 commit 9677075
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build/release

on: push

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 20

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.TOKEN }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
2 changes: 1 addition & 1 deletion main/helpers/ffmpeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const extractAudio = (videoPath, audioPath) => {
console.log('转换任务开始~', str);
})
.on('progress', function (progress) {
console.log('进行中,完成' + progress.percent + '%');
console.log('进行中,完成' + (progress.percent || 0) + '%');
})
.on('end', function (str) {
console.log('转换任务完成!');
Expand Down

0 comments on commit 9677075

Please sign in to comment.