Skip to content

Commit

Permalink
新图标,优化GithubAction
Browse files Browse the repository at this point in the history
  • Loading branch information
LeafYeeXYZ committed Jul 21, 2024
1 parent db18444 commit 11605de
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 12 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Wails build
nam: Wails build

on:
push:
Expand Down Expand Up @@ -26,25 +26,44 @@ jobs:
- name: 'windows-amd64'
platform: 'windows/amd64'
os: 'windows-latest'
- name: 'darwin-amd64'
platform: 'darwin/amd64'
os: 'macos-latest'
- name: 'darwin-arm64'
platform: 'darwin/arm64'
os: 'macos-latest'

runs-on: ${{ matrix.build.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.22'
cache: 'go-build'

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '22'

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'

- name: Build wails
uses: dAppServer/wails-build-action@v2.2
id: build
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest

- name: Build Wails
run: wails build

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
build-name: ${{ matrix.build.name }}
build-platform: ${{ matrix.build.platform }}
package: true
go-version: '1.22'
node-version: '20'
name: ${{ matrix.build.name }}
path: build/bin/*
Binary file modified build/appicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function Header({ systemStatus }: HeaderProps ) {
<p
className='header-version'
>
1.6.0
1.6.1
</p>
<p className='header-status-container'>
<p
Expand Down
2 changes: 1 addition & 1 deletion wails.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://wails.io/schemas/config.v2.json",
"name": "xyqk",
"name": "小鸦抢课",
"outputfilename": "xyqk",
"frontend:install": "bun install",
"frontend:build": "bun run build",
Expand Down

0 comments on commit 11605de

Please sign in to comment.