Compare commits

..

12 Commits

Author SHA1 Message Date
Nexmoe
7c64d255b8 chore: release v0.1.6 2025-10-23 22:28:24 +08:00
Nexmoe
bad839934d chore: remove unnecessary directory creation step in release workflow 2025-10-23 22:28:15 +08:00
Nexmoe
be06106f66 chore: release v0.1.5 2025-10-23 22:25:47 +08:00
Nexmoe
b6dc09a7e3 chore: enhance release workflow to download yt-dlp binaries for cross-platform support 2025-10-23 22:25:37 +08:00
Nexmoe
edbc572bf1 chore: release v0.1.4 2025-10-23 22:07:12 +08:00
Nexmoe
370a165572 chore: update release workflow to target only Windows environment 2025-10-23 22:07:03 +08:00
Nexmoe
6b0f9d0798 chore: release v0.1.3 2025-10-23 22:03:08 +08:00
Nexmoe
bc78f8a3ef chore: refactor release workflow to simplify build steps and update artifact handling 2025-10-23 22:02:57 +08:00
Nexmoe
297916c35b chore: update CI workflow to trigger pull requests only on the main branch 2025-10-23 21:53:46 +08:00
Nexmoe
e2b0aacf05 chore: release v0.1.2 2025-10-23 21:52:35 +08:00
Nexmoe
d9204049fe chore: specify shell for build step in release workflow 2025-10-23 21:52:25 +08:00
Nexmoe
390ce64722 chore: release v0.1.1 2025-10-23 21:34:31 +08:00
3 changed files with 44 additions and 56 deletions

View File

@@ -1,10 +1,8 @@
name: CI name: CI
on: on:
push:
branches: [ main, develop ]
pull_request: pull_request:
branches: [ main, develop ] branches: [ main ]
jobs: jobs:
test: test:

View File

@@ -6,12 +6,12 @@ on:
- v*.*.* - v*.*.*
jobs: jobs:
build: release:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] os: [windows-latest]
steps: steps:
- name: Check out Git repository - name: Check out Git repository
@@ -30,62 +30,52 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: pnpm install run: pnpm install
- name: Download yt-dlp binaries
run: |
# Download yt-dlp.exe for Windows
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe -o resources/yt-dlp.exe
# Download yt-dlp for macOS (for cross-platform builds)
# curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos -o resources/yt-dlp_macos
# chmod +x resources/yt-dlp_macos
# Download yt-dlp for Linux (for cross-platform builds)
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o resources/yt-dlp_linux
chmod +x resources/yt-dlp_linux
- name: Type check - name: Type check
run: pnpm run typecheck run: pnpm run typecheck
- name: Lint and format check - name: Lint and format check
run: pnpm run check run: pnpm run check
- name: Build Electron app # - name: build-linux
run: | # if: matrix.os == 'ubuntu-latest'
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then # run: pnpm run build:linux
pnpm run build:linux
elif [ "${{ matrix.os }}" == "macos-latest" ]; then
pnpm run build:mac
elif [ "${{ matrix.os }}" == "windows-latest" ]; then
pnpm run build:win
fi
- name: Upload artifacts # - name: build-mac
uses: actions/upload-artifact@v4 # if: matrix.os == 'macos-latest'
# run: pnpm run build:mac
- name: build-win
if: matrix.os == 'windows-latest'
run: pnpm run build:win
- name: release
uses: softprops/action-gh-release@v1
with: with:
name: dist-${{ matrix.os }} draft: true
path: dist/
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: dist/
- name: Create Release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
generate_release_notes: true
files: | files: |
dist-ubuntu-latest/*.AppImage dist/*.exe
dist-ubuntu-latest/*.snap dist/*.zip
dist-ubuntu-latest/*.deb dist/*.dmg
dist-ubuntu-latest/*.rpm dist/*.AppImage
dist-ubuntu-latest/*.tar.gz dist/*.snap
dist-ubuntu-latest/*.yml dist/*.deb
dist-ubuntu-latest/*.blockmap dist/*.rpm
dist-macos-latest/*.dmg dist/*.tar.gz
dist-macos-latest/*.zip dist/*.yml
dist-macos-latest/*.yml dist/*.blockmap
dist-macos-latest/*.blockmap env:
dist-windows-latest/*.exe GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
dist-windows-latest/*.zip
dist-windows-latest/*.yml
dist-windows-latest/*.blockmap

View File

@@ -1,6 +1,6 @@
{ {
"name": "vidbee", "name": "vidbee",
"version": "0.1.0", "version": "0.1.6",
"description": "A modern Electron application for downloading videos and audios", "description": "A modern Electron application for downloading videos and audios",
"main": "./out/main/index.js", "main": "./out/main/index.js",
"author": "VidBee", "author": "VidBee",