Comments (6)
I have added changes to allow the renaming of the application stub, ie
macAppBundle {
bundleExecutable = "newName"
}
I have not had time to research how to sign apps, but I suspect it would be
somewhat complicated by the need to get a password from the user. If you can
give me some more information on how this is done I will look into adding
support for it.
Original comment by [email protected]
on 10 Sep 2012 at 3:43
from gradle-macappbundle.
I think maybe the executable should only be named as per the name of the app. I
don't think there is any other choice which is going to work properly.
We are currently writing the signing code now in gradle, so once we figure it
out, we'll send it over.
Original comment by [email protected]
on 11 Sep 2012 at 4:21
from gradle-macappbundle.
Here is all we needed to do:
exec {
executable = "codesign"
args = [
"-s",
"Acme cert",
"-f",
"${distsDir}/macosx/${project.appName}.app"]
}
Original comment by [email protected]
on 12 Sep 2012 at 8:46
from gradle-macappbundle.
I have pushed in changes for this. Can you test before I make a release?
To use you would either do
gradle codeSign createDmg
or if you want to always use it, in your build.gradle
createDmg.dependsOn(codeSign)
You will want to add two configs to your macAppBundle configuration, like:
certIdentity = "Acme cert"
bundleExecutable = "${->project.name}"
thanks
Original comment by [email protected]
on 15 Sep 2012 at 11:36
from gradle-macappbundle.
Should be fixed in 1.0.6
Original comment by [email protected]
on 27 Sep 2012 at 3:37
- Changed state: Fixed
from gradle-macappbundle.
I thought I would comment for those such as myself that want to take advantage of code-signing to simply eliminate the "Unknown Developer" error...
First, the value of "certIdentity", at a (unique) minimum can be the user ID from the .cer file that you download from your apple developer account. Or it can be a number of other values from that .cer file, including a substring of the "Common Name" or even the 40 character SHA-1 string. If the value doesn't uniquely identify the cert, you'll get an error about an ambiguous cert identity.
The .cer file is installed by double-clicking it, and if you obtained the .cer file from your own Apple Developer account, a paired "private key" will be created. Without that key, the codesign will fail with "No identity found".
For educational institutions with an apple developer account such as mine, you must be an admin on the account or higher to download a cert. And in order to distribute your app outside of the app store, you need a cert of type "Developer ID Application", which can only be created by the Team Agent. And you as an admin, must download it from your own account.
I won't get into the details of how you obtain membership in the apple developer program account held by your organization, but I will say that unless you're a high-up at your university, with the ability to bind your university to legal agreements, you can't obtain a free educational institution apple developer account yourself, but your apple ID has to have its own free developer account and then be invited to your university's account with Apple as a team member.
from gradle-macappbundle.
Related Issues (20)
- Deprecation warning with Gradle 4.0-rc-1 HOT 4
- Error: execCommand == null HOT 2
- Subproject evalutation and executing project.afterEvaluate{} HOT 1
- Resulting app does not open when bundleJRE = true HOT 6
- Error prototypes method getJREDirName HOT 4
- About the dmg HOT 7
- backgroundImage option fails on osascript when project path contains spaces
- JDK 10 is not bundled HOT 7
- Adding javaExtras.put() creates an app that wonβt run HOT 3
- There doesn't seem to be a way to create a /Applications alias in a dmg without a background image HOT 5
- Builing DMG often fails when background image is set HOT 2
- Switch app launcher to one with a better JRE missing error? HOT 5
- Application hangs when okhttp3.Credentials.basic method gets called HOT 2
- is it possible to manually edit the startup script? HOT 4
- Gradle 5.0 build fails on non-macOS systems HOT 1
- Java 11 JRE's from adoptopenjdk are not supported HOT 1
- Remove dependency between assemble and macappbundle tasks
- Created application cannot be notarized for Mac OS Mojave HOT 7
- Documention/Links on how to contribute HOT 1
- JavaAppLauncher Apple Silicon (arm64) support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-macappbundle.