diff --git a/.travis.yml b/.travis.yml index f20b7de..8e657e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,13 @@ branches: - /^v\d+\.\d+\.\d+/ install: +- if ! $TRAVIS_PULL_REQUEST && [ $TRAVIS_OS_NAME = osx ]; then + security create-keychain -p mynotsecretpassword build.keychain; + security default-keychain -s build.keychain; + security unlock-keychain -p mynotsecretpassword build.keychain; + security import cert/solminer.p12 -k build.keychain -P "$SOLMINER_P12_PASSWORD" -T /usr/bin/codesign; + security find-identity -v; + fi - yarn script: diff --git a/cert/solminer.p12 b/cert/solminer.p12 new file mode 100644 index 0000000..1ff4043 Binary files /dev/null and b/cert/solminer.p12 differ diff --git a/forge.config.js b/forge.config.js index 099069a..dfe129f 100644 --- a/forge.config.js +++ b/forge.config.js @@ -30,6 +30,7 @@ module.exports = { packageManager: 'yarn', icon: 'src/images/icon/solminer', extraResource: solanaInstallInit, + osxSign: !!process.env.TRAVIS, // Only sign if running on Travis CI }, electronWinstallerConfig, electronInstallerDMG: {