Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,23 @@ jobs:
if: matrix.os == 'macos-latest'
run: |
go run github.com/wailsapp/wails/v2/cmd/wails@latest build -clean -ldflags "-w -s"
echo "=== Copying app icon to Resources directory ==="
APP_PATH="build/bin/green-wall.app"
RESOURCES_PATH="$APP_PATH/Contents/Resources"
mkdir -p "$RESOURCES_PATH"
cp "build/darwin/appIcon.icns" "$RESOURCES_PATH/"

- name: Create signature (macOS)
if: matrix.os == 'macos-latest'
run: |
echo "=== Creating Ad-hoc signature for macOS app ==="
APP_PATH="build/bin/green-wall.app"
echo "Signing app with Ad-hoc signature..."
codesign --sign - --deep --force "$APP_PATH"
echo "Verifying signature..."
codesign --verify --verbose "$APP_PATH"
echo "Displaying signature info..."
codesign --display --verbose=4 "$APP_PATH"

- name: List build output (Linux/macOS)
if: matrix.os != 'windows-latest'
Expand Down Expand Up @@ -169,8 +186,16 @@ jobs:
- name: Create macOS archive
if: matrix.os == 'macos-latest'
run: |
echo "=== Creating macOS DMG with signed app ==="
APP_PATH="build/bin/green-wall.app"
echo "Verifying app signature before DMG creation..."
codesign --verify --verbose "$APP_PATH"
echo "Creating DMG..."
npm install --global create-dmg
cd build/bin
zip -r ../../green-wall-${{ matrix.name }}-${{ runner.arch }}.zip green-wall.app
create-dmg --no-code-sign "green-wall.app" .
mv *.dmg ../../green-wall-${{ matrix.name }}-${{ runner.arch }}.dmg
echo "DMG created successfully with signed app"

- name: Create Linux archive
if: matrix.os == 'ubuntu-latest'
Expand All @@ -190,7 +215,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: green-wall-${{ matrix.name }}-${{ runner.arch }}
path: green-wall-${{ matrix.name }}-${{ runner.arch }}.zip
path: green-wall-${{ matrix.name }}-${{ runner.arch }}.dmg
if-no-files-found: error
retention-days: 30

Expand Down
2 changes: 1 addition & 1 deletion build/darwin/Info.dev.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>CFBundleShortVersionString</key>
<string>{{.Info.ProductVersion}}</string>
<key>CFBundleIconFile</key>
<string>iconfile</string>
<string>appIcon</string>
<key>LSMinimumSystemVersion</key>
<string>10.13.0</string>
<key>NSHighResolutionCapable</key>
Expand Down
2 changes: 1 addition & 1 deletion build/darwin/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>CFBundleShortVersionString</key>
<string>{{.Info.ProductVersion}}</string>
<key>CFBundleIconFile</key>
<string>iconfile</string>
<string>appIcon</string>
<key>LSMinimumSystemVersion</key>
<string>10.13.0</string>
<key>NSHighResolutionCapable</key>
Expand Down
Binary file added build/darwin/appIcon.icns
Binary file not shown.
21 changes: 21 additions & 0 deletions build/darwin/entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Network access for GitHub API -->
<key>com.apple.security.network.client</key>
<true/>

<!-- File system access for git operations -->
<key>com.apple.security.files.user-selected.read-write</key>
<true/>

<!-- Allow execution of git binary -->
<key>com.apple.security.files.all</key>
<true/>

<!-- Disable sandbox for git operations -->
<key>com.apple.security.app-sandbox</key>
<false/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion wails.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"name": "zmrlft",
"email": "2643895326@qq.com"
}
}
}