fix: 修复 CI 构建失败 - 移除 Generate icons 步骤, 提交 icon.ico, 拆分 macOS 构建任务
This commit is contained in:
83
.github/workflows/release.yml
vendored
83
.github/workflows/release.yml
vendored
@@ -38,9 +38,6 @@ jobs:
|
|||||||
- name: Generate bindings
|
- name: Generate bindings
|
||||||
run: wails3 generate bindings
|
run: wails3 generate bindings
|
||||||
|
|
||||||
- name: Generate icons
|
|
||||||
run: wails3 generate icons -input build/appicon.png -windowsDir build/windows -macDir build/darwin
|
|
||||||
|
|
||||||
- name: Generate syso
|
- name: Generate syso
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: wails3 generate syso -arch amd64 -icon windows/icon.ico -manifest windows/wails.exe.manifest -info windows/info.json -out ../wails_windows_amd64.syso
|
run: wails3 generate syso -arch amd64 -icon windows/icon.ico -manifest windows/wails.exe.manifest -info windows/info.json -out ../wails_windows_amd64.syso
|
||||||
@@ -67,11 +64,8 @@ jobs:
|
|||||||
name: gitpilot-windows-amd64
|
name: gitpilot-windows-amd64
|
||||||
path: bin/gitpilot-windows-amd64.zip
|
path: bin/gitpilot-windows-amd64.zip
|
||||||
|
|
||||||
build-macos:
|
build-macos-arm64:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch: [amd64, arm64]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -99,14 +93,11 @@ jobs:
|
|||||||
- name: Generate bindings
|
- name: Generate bindings
|
||||||
run: wails3 generate bindings
|
run: wails3 generate bindings
|
||||||
|
|
||||||
- name: Generate icons
|
|
||||||
run: wails3 generate icons -input build/appicon.png -windowsDir build/windows -macDir build/darwin
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
GOOS: darwin
|
GOOS: darwin
|
||||||
GOARCH: ${{ matrix.arch }}
|
GOARCH: arm64
|
||||||
CGO_CFLAGS: "-mmacosx-version-min=10.15"
|
CGO_CFLAGS: "-mmacosx-version-min=10.15"
|
||||||
CGO_LDFLAGS: "-mmacosx-version-min=10.15"
|
CGO_LDFLAGS: "-mmacosx-version-min=10.15"
|
||||||
MACOSX_DEPLOYMENT_TARGET: "10.15"
|
MACOSX_DEPLOYMENT_TARGET: "10.15"
|
||||||
@@ -124,13 +115,72 @@ jobs:
|
|||||||
- name: Package
|
- name: Package
|
||||||
run: |
|
run: |
|
||||||
cd bin
|
cd bin
|
||||||
zip -r gitpilot-macos-${{ matrix.arch }}.zip gitpilot.app config.yaml
|
zip -r gitpilot-macos-arm64.zip gitpilot.app
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: gitpilot-macos-${{ matrix.arch }}
|
name: gitpilot-macos-arm64
|
||||||
path: bin/gitpilot-macos-${{ matrix.arch }}.zip
|
path: bin/gitpilot-macos-arm64.zip
|
||||||
|
|
||||||
|
build-macos-amd64:
|
||||||
|
runs-on: macos-13
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.24'
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
|
- name: Install Wails CLI
|
||||||
|
run: go install github.com/wailsapp/wails/v3/cmd/wails3@latest
|
||||||
|
|
||||||
|
- name: Install frontend dependencies
|
||||||
|
run: npm install
|
||||||
|
working-directory: frontend
|
||||||
|
|
||||||
|
- name: Build frontend
|
||||||
|
run: npm run generate
|
||||||
|
working-directory: frontend
|
||||||
|
|
||||||
|
- name: Generate bindings
|
||||||
|
run: wails3 generate bindings
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 1
|
||||||
|
GOOS: darwin
|
||||||
|
GOARCH: amd64
|
||||||
|
CGO_CFLAGS: "-mmacosx-version-min=10.15"
|
||||||
|
CGO_LDFLAGS: "-mmacosx-version-min=10.15"
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: "10.15"
|
||||||
|
run: go build -tags "production,disable_onnx" -trimpath -buildvcs=false -ldflags="-w -s" -o bin/gitpilot
|
||||||
|
|
||||||
|
- name: Create .app bundle
|
||||||
|
run: |
|
||||||
|
mkdir -p bin/gitpilot.app/Contents/{MacOS,Resources}
|
||||||
|
cp build/darwin/icons.icns bin/gitpilot.app/Contents/Resources/
|
||||||
|
cp bin/gitpilot bin/gitpilot.app/Contents/MacOS/
|
||||||
|
cp config.yaml bin/gitpilot.app/Contents/MacOS/config.yaml
|
||||||
|
cp build/darwin/Info.plist bin/gitpilot.app/Contents/
|
||||||
|
codesign --force --deep --sign - bin/gitpilot.app
|
||||||
|
|
||||||
|
- name: Package
|
||||||
|
run: |
|
||||||
|
cd bin
|
||||||
|
zip -r gitpilot-macos-amd64.zip gitpilot.app
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: gitpilot-macos-amd64
|
||||||
|
path: bin/gitpilot-macos-amd64.zip
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -166,9 +216,6 @@ jobs:
|
|||||||
- name: Generate bindings
|
- name: Generate bindings
|
||||||
run: wails3 generate bindings
|
run: wails3 generate bindings
|
||||||
|
|
||||||
- name: Generate icons
|
|
||||||
run: wails3 generate icons -input build/appicon.png -windowsDir build/windows -macDir build/darwin
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
@@ -191,7 +238,7 @@ jobs:
|
|||||||
path: bin/gitpilot-linux-amd64.tar.gz
|
path: bin/gitpilot-linux-amd64.tar.gz
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [build-windows, build-macos, build-linux]
|
needs: [build-windows, build-macos-arm64, build-macos-amd64, build-linux]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
bin/
|
||||||
|
*.syso
|
||||||
|
.task/
|
||||||
|
actions_log.zip
|
||||||
|
actions_logs/
|
||||||
@@ -1 +0,0 @@
|
|||||||
c9e4d012d15abf06367f9dcb35fbde1a
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
e4fca8850949396013f268b14abf0d8a
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
9717dac68ebaaaeee7334acd18992d68
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
c9e4d012d15abf06367f9dcb35fbde1a
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
platforms:
|
|
||||||
gitea:
|
|
||||||
base_url: http://192.168.1.10:3000
|
|
||||||
users: []
|
|
||||||
gitee:
|
|
||||||
base_url: ""
|
|
||||||
users:
|
|
||||||
- username: zhuyuj
|
|
||||||
token: ""
|
|
||||||
projects: []
|
|
||||||
github:
|
|
||||||
base_url: ""
|
|
||||||
users:
|
|
||||||
- username: zhuy1228
|
|
||||||
token: ""
|
|
||||||
projects:
|
|
||||||
- name: GitPilot
|
|
||||||
path: F:\Project\GitPilot
|
|
||||||
enabled: false
|
|
||||||
- name: nakama
|
|
||||||
path: F:\Project\nakama
|
|
||||||
enabled: false
|
|
||||||
- name: DevPack
|
|
||||||
path: F:\Project\DevPack
|
|
||||||
enabled: false
|
|
||||||
- name: go-desk-service
|
|
||||||
path: F:\Project\go-desk\go-desk-service
|
|
||||||
enabled: false
|
|
||||||
- name: go-desk-wails
|
|
||||||
path: F:\Project\go-desk\go-desk-wails
|
|
||||||
enabled: false
|
|
||||||
- name: go-game
|
|
||||||
path: F:\Project\go-game
|
|
||||||
enabled: false
|
|
||||||
- name: PeterAgent
|
|
||||||
path: F:\Project\PeterAgent
|
|
||||||
enabled: false
|
|
||||||
settings:
|
|
||||||
concurrency: 6
|
|
||||||
network_check: true
|
|
||||||
log_level: info
|
|
||||||
BIN
bin/gitpilot.exe
BIN
bin/gitpilot.exe
Binary file not shown.
65
config.yaml
65
config.yaml
@@ -1,40 +1,41 @@
|
|||||||
platforms:
|
platforms:
|
||||||
github:
|
|
||||||
users:
|
|
||||||
- username: "zz_main"
|
|
||||||
token: "" # 可选:未来扩展 API 功能
|
|
||||||
projects:
|
|
||||||
- name: "projectA"
|
|
||||||
path: "F:/Projects/github/projectA"
|
|
||||||
- name: "projectB"
|
|
||||||
path: "F:/Projects/github/projectB"
|
|
||||||
|
|
||||||
- username: "zz_work"
|
|
||||||
token: ""
|
|
||||||
projects:
|
|
||||||
- name: "work-tool"
|
|
||||||
path: "F:/Projects/github/work-tool"
|
|
||||||
|
|
||||||
gitee:
|
|
||||||
users:
|
|
||||||
- username: "zz_gitee"
|
|
||||||
token: ""
|
|
||||||
projects:
|
|
||||||
- name: "gitee-demo"
|
|
||||||
path: "F:/Projects/gitee/demo"
|
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
base_url: "http://192.168.1.10:3000"
|
base_url: http://192.168.1.10:3000
|
||||||
|
users: []
|
||||||
|
gitee:
|
||||||
|
base_url: ""
|
||||||
users:
|
users:
|
||||||
- username: "admin"
|
- username: zhuyuj
|
||||||
|
token: ""
|
||||||
|
projects: []
|
||||||
|
github:
|
||||||
|
base_url: ""
|
||||||
|
users:
|
||||||
|
- username: zhuy1228
|
||||||
token: ""
|
token: ""
|
||||||
projects:
|
projects:
|
||||||
- name: "gitea-app"
|
- name: GitPilot
|
||||||
path: "F:/Projects/gitea/app"
|
path: F:\Project\GitPilot
|
||||||
- name: "gitea-service"
|
enabled: false
|
||||||
path: "F:/Projects/gitea/service"
|
- name: nakama
|
||||||
|
path: F:\Project\nakama
|
||||||
|
enabled: false
|
||||||
|
- name: DevPack
|
||||||
|
path: F:\Project\DevPack
|
||||||
|
enabled: false
|
||||||
|
- name: go-desk-service
|
||||||
|
path: F:\Project\go-desk\go-desk-service
|
||||||
|
enabled: false
|
||||||
|
- name: go-desk-wails
|
||||||
|
path: F:\Project\go-desk\go-desk-wails
|
||||||
|
enabled: false
|
||||||
|
- name: go-game
|
||||||
|
path: F:\Project\go-game
|
||||||
|
enabled: false
|
||||||
|
- name: PeterAgent
|
||||||
|
path: F:\Project\PeterAgent
|
||||||
|
enabled: false
|
||||||
settings:
|
settings:
|
||||||
concurrency: 6
|
concurrency: 6
|
||||||
network_check: true
|
network_check: true
|
||||||
log_level: "info"
|
log_level: info
|
||||||
|
|||||||
Reference in New Issue
Block a user