Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.9.2 mac binary cannot be signed #3868

Open
codenoid opened this issue Nov 1, 2024 · 1 comment
Open

v2.9.2 mac binary cannot be signed #3868

codenoid opened this issue Nov 1, 2024 · 1 comment

Comments

@codenoid
Copy link

codenoid commented Nov 1, 2024

Description

#!/bin/bash

rm Lokal.pkg
rm -rf build/bin/Lokal.app

APP_CERTIFICATE="Developer ID Application: x (x)"
PKG_CERTIFICATE="Developer ID Installer: x (x)"
APP_NAME="Lokal"

wails build -platform darwin/universal -s -clean -trimpath

codesign -s "Developer ID Application: x (x)" -f -v --timestamp --deep --options runtime ./build/bin/$APP_NAME.app

productbuild --sign "$PKG_CERTIFICATE" --component ./build/bin/$APP_NAME.app /Applications ./$APP_NAME.pkg

xcrun notarytool submit ./Lokal.pkg --wait --apple-id "x" --team-id x --password "x"
xcrun stapler staple ./Lokal.pkg

the exact script was working on v2.8.0 but not on v2.9.2

To Reproduce

above

Expected behaviour

Conducting pre-submission checks for Lokal.pkg and initiating connection to the Apple notary service...
Submission ID received
id: x
Upload progress: 100,00% (45,2 MB of 45,2 MB)
Successfully uploaded file
id: x
path: /Lokal.pkg
Waiting for processing to complete.
Current status: Accepted..........
Processing complete
id: x
status: Accepted
Processing: /Lokal.pkg
Processing: /Lokal.pkg
The staple and validate action worked!

Screenshots

image

Attempted Fixes

downgrade wails cli

System Details

SUCCESS  Scanning system - Please wait (this may ta                                                    
# Wails
Version | v2.8.0

# System
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | MacOS                                                                                                                       |
| Version      | 14.5                                                                                                                        |
| ID           | 23F79                                                                                                                       |
| Go Version   | go1.22.4                                                                                                                    |
| Platform     | darwin                                                                                                                      |
| Architecture | arm64                                                                                                                       |
| CPU          | Apple M1 Max                                                                                                                |
| GPU          | Chipset Model: Apple M1 Max Type: GPU Bus: Built-In Total Number of Cores: 32 Vendor: Apple (0x106b) Metal Support: Metal 3 |
| Memory       | 32GB                                                                                                                        |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌──────────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version       |
| Xcode command line tools  | N/A          | Installed | 2408          |
| Nodejs                    | N/A          | Installed | 23.1.0        |
| npm                       | N/A          | Installed | 10.9.0        |
| *Xcode                    | N/A          | Installed | 15.4 (15F31d) |
| *upx                      | N/A          | Available |               |
| *nsis                     | N/A          | Available |               |
└────────────────────── * - Optional Dependency ───────────────────────┘

# Diagnosis
Optional package(s) installation details: 
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

Additional context

No response

@codenoid codenoid added the Bug Something isn't working label Nov 1, 2024
@leaanthony
Copy link
Member

Is this a Wails issue though? It sounds like a signing request issue which is out-of-band for Wails.

@leaanthony leaanthony added Not a Wails Issue and removed Bug Something isn't working labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants