Browse Source

sign and notarise app for osx

bwt
Craig Raw 5 years ago
parent
commit
950ae07df5
  1. 1
      .gitignore
  2. 6
      build.gradle
  3. 0
      src/main/deploy/associations.properties
  4. 16
      src/main/deploy/package/macosx/Sparrow.entitlements
  5. 0
      src/main/deploy/package/macosx/sparrow.icns
  6. 3
      src/main/java/com/sparrowwallet/sparrow/AppController.java

1
.gitignore

@ -5,3 +5,4 @@ build
/*.properties
out
*.log
build-*.sh

6
build.gradle

@ -67,7 +67,8 @@ jlink {
jpackage {
imageName = "Sparrow"
installerName = "Sparrow"
appVersion = "0.5"
appVersion = "0.51"
skipInstaller = true
imageOptions = []
installerOptions = [
'--file-associations', 'src/main/resources/associations.properties',
@ -76,7 +77,8 @@ jlink {
installerOptions += ['--win-per-user-install', '--win-dir-chooser', '--win-menu']
}
if (org.gradle.internal.os.OperatingSystem.current().macOsX) {
imageOptions += ['--icon', 'src/main/resources/sparrow.icns']
installerOptions += ['--mac-sign', '--mac-signing-key-user-name', 'Craig Raw (UPLVMSK9D7)']
imageOptions += ['--icon', 'src/main/deploy/package/macosx/sparrow.icns']
installerType = "dmg"
}
}

0
src/main/resources/associations.properties → src/main/deploy/associations.properties

16
src/main/deploy/package/macosx/Sparrow.entitlements

@ -0,0 +1,16 @@
<?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>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>

0
src/main/resources/sparrow.icns → src/main/deploy/package/macosx/sparrow.icns

3
src/main/java/com/sparrowwallet/sparrow/AppController.java

@ -12,10 +12,7 @@ import com.sparrowwallet.sparrow.event.TabEvent;
import com.sparrowwallet.sparrow.event.TransactionTabChangedEvent;
import com.sparrowwallet.sparrow.event.TransactionTabSelectedEvent;
import com.sparrowwallet.sparrow.transaction.TransactionController;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;

Loading…
Cancel
Save