Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c64d255b8 | ||
|
|
bad839934d | ||
|
|
be06106f66 | ||
|
|
b6dc09a7e3 | ||
|
|
edbc572bf1 | ||
|
|
370a165572 | ||
|
|
6b0f9d0798 | ||
|
|
bc78f8a3ef | ||
|
|
297916c35b | ||
|
|
e2b0aacf05 | ||
|
|
d9204049fe | ||
|
|
390ce64722 |
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -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:
|
||||||
|
|||||||
94
.github/workflows/release.yml
vendored
94
.github/workflows/release.yml
vendored
@@ -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
|
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user