Skip to content

Commit

Permalink
feat: 切换 macOS 构建
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Nov 19, 2024
1 parent c9f1f91 commit d8a8dfc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5,822 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,11 @@ name: Create Release And Upload assets
jobs:
create-realese:
name: Create Release
runs-on: ubuntu-latest
runs-on: macos-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Install Dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential wine wine32
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Get version
id: get_version
Expand All @@ -45,17 +38,8 @@ jobs:

- name: Build Binary
run: |
mkdir -p release
yarn install
yarn build
ls -al release/
- name: Release Upload Assets
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 24 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "video-player",
"private": true,
"version": "0.1.10",
"version": "0.2.0",
"type": "module",
"main": "dist-electron/main.js",
"scripts": {
"dev": "vite",
"build": "vite build && electron-builder --mac --win --linux",
"build": "vite build && electron-builder --linux --mac --win",
"preview": "vite preview"
},
"build": {
Expand Down Expand Up @@ -38,27 +38,33 @@
"mac": {
"icon": "assets/player.icns",
"identity": null,
"target": [
"dmg",
"zip"
]
"target": {
"target": "default",
"arch": [
"arm64",
"x64"
]
}
},
"win": {
"icon": "assets/icon.ico",
"target": [
{
"target": "nsis",
"arch": [
"ia32"
]
}
]
"target": {
"target": "nsis",
"arch": [
"ia32",
"x64"
]
},
"artifactName": "${productName}-Setup-${version}-${arch}.${ext}"
},
"linux": {
"icon": "assets",
"target": [
"zip"
]
"target": {
"target": "AppImage",
"arch": [
"x64",
"arm64"
],
"category": "Tool"
}
},
"dependencies": {
Expand Down
Loading

0 comments on commit d8a8dfc

Please sign in to comment.