Update README.md #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build-PreRelease | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.6.12 | |
- name: Install Node.js 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.12.1 | |
cache: 'pnpm' | |
- name: Install global dependencies | |
run: npm i prisma fastify-cli turbo tsx [email protected] node-gyp-install -g && node-gyp-install --python=python3 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Copy Env | |
run: cp .env.example .env | |
# - name: Build sqlite3 binaries | |
# run: tsx ./scripts/build.sqlite3.ts | |
# - name: Install RPM & Pacman (Linux) | |
# if: runner.os == 'Linux' | |
# run: | | |
# sudo apt-get update && | |
# sudo apt-get install --no-install-recommends -y rpm && | |
# sudo apt-get install --no-install-recommends -y bsdtar && | |
# sudo apt-get install --no-install-recommends -y libopenjp2-tools | |
# - name: Install Snapcraft (Linux) | |
# uses: samuelmeuli/action-snapcraft@v1 | |
# if: startsWith(matrix.os, 'ubuntu') | |
# with: | |
# Disable since the Snapcraft token is currently not working | |
# snapcraft_token: ${{ secrets.snapcraft_token }} | |
- name: Build-Pre-Release Electron app | |
env: | |
ELECTRON_WEB_SERVER_PORT: 42710 | |
ELECTRON_DEV_NETEASE_API_PORT: 30001 | |
UNBLOCK_SERVER_PORT: 30003 | |
VITE_APP_NETEASE_API_URL: /netease | |
ENABLE_FLAC: "true" | |
ENABLE_LOCAL_VIP: "svip" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: pnpm package | |
# - name: Build-Release Electron app | |
# uses: njzydark/[email protected] | |
# env: | |
# ELECTRON_WEB_SERVER_PORT: 42710 | |
# ELECTRON_DEV_NETEASE_API_PORT: 30001 | |
# UNBLOCK_SERVER_PORT: 30003 | |
# VITE_APP_NETEASE_API_URL: /netease | |
# ENABLE_FLAC: "true" | |
# ENABLE_LOCAL_VIP: "svip" | |
# with: | |
# # GitHub token, automatically provided to the action | |
# # (No need to define this secret in the repo settings) | |
# github_token: ${{ secrets.github_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') }} | |
# args: package | |
# # skip_package_manager_install: true | |
# package_manager: pnpm | |
- name: Upload Artifact (macOS universal) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: R3PLAYX-mac-universal | |
path: ./packages/desktop/release/*-universal.dmg | |
if-no-files-found: ignore | |
- name: Upload Artifact (macOS x64) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: R3PLAYX-mac-x64 | |
path: ./packages/desktop/release/*-x64.dmg | |
if-no-files-found: ignore | |
- name: Upload mac latest yml | |
uses: actions/upload-artifact@v3 | |
with: | |
name: latest-mac | |
path: ./packages/desktop/release/latest-mac.yml | |
if-no-files-found: ignore | |
- name: Upload Artifact (macOS arm64) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: R3PLAYX-mac-arm64 | |
path: ./packages/desktop/release/*-arm64.dmg | |
if-no-files-found: ignore | |
- name: Upload Artifact (Windows) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: R3PLAYX-win | |
path: ./packages/desktop/release/*x64-Setup.exe | |
if-no-files-found: ignore | |
- name: Upload windows latest yml | |
uses: actions/upload-artifact@v3 | |
with: | |
name: latest | |
path: ./packages/desktop/release/latest.yml | |
if-no-files-found: ignore | |
- name: Upload Artifact (Linux Appimage) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: R3PLAYX-linux | |
path: ./packages/desktop/release/*.AppImage | |
if-no-files-found: ignore | |
- name: Upload Artifact (Linux deb) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: R3PLAYX-linux-deb | |
path: ./packages/desktop/release/*.deb | |
if-no-files-found: ignore | |
- name: Upload linux latest yml | |
uses: actions/upload-artifact@v3 | |
with: | |
name: latest-linux | |
path: ./packages/desktop/release/latest-linux.yml | |
if-no-files-found: ignore |