Compare commits

...

7 Commits

3 changed files with 47 additions and 57 deletions

View File

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

View File

@@ -6,12 +6,12 @@ on:
- v*.*.*
jobs:
build:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [windows-latest]
steps:
- name: Check out Git repository
@@ -30,63 +30,55 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Download yt-dlp binaries
run: |
# Create resources directory if it doesn't exist
mkdir -p resources
# 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
run: pnpm run typecheck
- name: Lint and format check
run: pnpm run check
- name: Build Electron app
run: |
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
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
shell: bash
# - name: build-linux
# if: matrix.os == 'ubuntu-latest'
# run: pnpm run build:linux
- name: Upload artifacts
uses: actions/upload-artifact@v4
# - name: build-mac
# 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:
name: dist-${{ matrix.os }}
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
draft: true
files: |
dist-ubuntu-latest/*.AppImage
dist-ubuntu-latest/*.snap
dist-ubuntu-latest/*.deb
dist-ubuntu-latest/*.rpm
dist-ubuntu-latest/*.tar.gz
dist-ubuntu-latest/*.yml
dist-ubuntu-latest/*.blockmap
dist-macos-latest/*.dmg
dist-macos-latest/*.zip
dist-macos-latest/*.yml
dist-macos-latest/*.blockmap
dist-windows-latest/*.exe
dist-windows-latest/*.zip
dist-windows-latest/*.yml
dist-windows-latest/*.blockmap
dist/*.exe
dist/*.zip
dist/*.dmg
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

View File

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