Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Aug 29, 2019
2 parents d1320b9 + bb26a17 commit 764d7f2
Show file tree
Hide file tree
Showing 30 changed files with 1,636 additions and 1,290 deletions.
34 changes: 21 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: node_js
node_js:
# Use 10.15.0 because xcode11 already has it installed, and xcode 11 is slow so
# we do what we can to make it faster.
- "10.15.0"
# Use 8.16.0 because that is what Electron needs
- "8.16.0"
dist: bionic
osx_image: xcode11
matrix:
Expand All @@ -23,17 +22,26 @@ env:
# encrypted GH_TOKEN:
- secure: N551P94nYNIuv5IIcvgtee/jfd9ReGYRbq5hUvgG1pRbb+8wtNWT9JM6qIUflj0GoVCDeuz+urvqFwC4OET/NC6sGB9rtVoAVjf7vfKaoxPTN2wSMjT8GcVXvnG6S5hdPO6JlVrXZf2kDJr8p0vWKgRTgU7hSfEr8Nuxk938MC+qLUpuS6oAx0Vekkq/05OrZMIiheqHpSbXZido1SWBEy+XdL1MpNpKYSnp4gQXxtOQkF28vHQMKVDvPNoPm0RpuYmab6kJnGXDkWIsBtZlknw+Wf0oK9LJRuV8jFD4rkxRthuYDAXiep3dY8bkCZzo80Sy/KEB2oYKvMSBNDYlBoYeR3hsv5OB8ujhCDoXdBddjhIEe9vIFV93QWVzE+XCCfG1IczhTQ57Pk33eGfvRv/QnGnXKdSqS2+4roXOfohFh98oRzKGsFhjZ+22QQkyBHwcghw5xywPcr8ZF0ZC06pF7hvCFIlubDz9ZAaQo7vkpXbbft34ooxpGvSgQ5JOUXMu/zDy1E+szXwgcCn5trXhPEUhznCKiC2qrR4q1mVzyspXOHxz7hXkthWqUZEKFWrJw3/ttSZd1qQ7HFv2Re1eEIA/Q0HpCMe4Php5oqRDsxA7zUIHpw19aqtAhCR4WNg8yY7OmGXp3VeUQ3aiS/fFBbbsYRFj62Fv4Hr5BJY=
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export CSC_IDENTITY_AUTO_DISCOVERY=false;
export CSC_LINK=certs/osx.p12;
openssl aes-256-cbc -K $encrypted_7777a4e0a460_key -iv $encrypted_7777a4e0a460_iv -in certs/osx.p12.enc -out $CSC_LINK -d;
# Only mess with encryption if we might be publishing (don't set up keychain for PRs)
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$TRAVIS_SECURE_ENV_VARS" = "true" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
echo "Configuring keychain...";
export CERT=certs/osx.p12;
openssl aes-256-cbc -K $encrypted_7777a4e0a460_key -iv $encrypted_7777a4e0a460_iv -in certs/osx.p12.enc -out $CERT -d;

export KEYCHAIN=build.keychain;
security create-keychain -p mysecretpassword $KEYCHAIN;
security default-keychain -s $KEYCHAIN;
security unlock-keychain -p mysecretpassword $KEYCHAIN;
security import $CSC_LINK -k $KEYCHAIN -P $CSC_KEY_PASSWORD -T /usr/bin/codesign;
security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k mysecretpassword $KEYCHAIN;
export CSC_KEYCHAIN=build.keychain;
export KEYCHAIN_PASS=$RANDOM.$RANDOM.$RANDOM;
security create-keychain -p $KEYCHAIN_PASS $CSC_KEYCHAIN;
security default-keychain -s $CSC_KEYCHAIN;
security unlock-keychain -p $KEYCHAIN_PASS $CSC_KEYCHAIN;
security import $CERT -k $CSC_KEYCHAIN -P $CSC_KEY_PASSWORD -T /usr/bin/codesign;

echo "Setting key partition list";
security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k $KEYCHAIN_PASS $CSC_KEYCHAIN >/dev/null 2>&1;

rm $CERT;
unset CERT;
unset KEYCHAIN_PASS;
unset CSC_KEY_PASSWORD;
fi
script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then npm run build-linux; fi
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Ganache is your personal blockchain for Ethereum development.

### Getting started

You can download a self-contained prebuilt Ganache binary for your platform of choice using the "Download" button on the [Ganache](http://truffleframework.com/ganache/) website, or from this repository's [releases](https://github.com/trufflesuite/ganache/releases) page.
You can download a self-contained prebuilt Ganache binary for your platform of choice using the "Download" button on the [Ganache](https://trufflesuite.com/ganache/) website, or from this repository's [releases](https://github.com/trufflesuite/ganache/releases) page.

### Contributing

Please open issues and pull requests for new features, questions, and bug fixes.

Requirements:

- `node v10.15.0`
- `node v8.16.0`

To get started:

Expand Down Expand Up @@ -93,4 +93,4 @@ Note from the author: I found managing these assets manually -- especially the a

### By Truffle

Ganache is part of the Truffle suite of tools. [Find out more!](http://truffleframework.com)
Ganache is part of the Truffle suite of tools. [Find out more!](https://trufflesuite.com)
19 changes: 13 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,28 @@ cache:
- '%USERPROFILE%\.electron'

environment:
CSC_KEY_PASSWORD:
secure: 6HPJFbG4UcVgagENR42Pc1bshVrRsoMxt0xDKrR1eCs=
CERT_PASSPHRASE:
CERT_ENCRYPTION_KEY:
secure: kMG4K6eKtrVcehlpLDdxX8DAe1gvzaKcdn0HR2IdtgG4+eFqczuddRdkq18ZSzqeDTA8/CxaY8p13NwRLP0EGNztobwSwE/WKq7Aa+MeRFc=
CERT_ENCRYPTION_SALT:
secure: 2v3yczKKH+sntflfb+0iakdCSb1B4QqNtkzXBe+H3DmWgrPxOAV54fKdOSPKowHDiokPjpDlX7yFpwGxpaO5Mg==
CERT_PRIVATE_KEY_PASSWORD:
secure: 6HPJFbG4UcVgagENR42Pc1bshVrRsoMxt0xDKrR1eCs=
GH_TOKEN:
secure: S+Bnfbb+uco7s2X3jqmfP3vwxLIIZTmNmT0f8y982PaiUQB1AW8YNN7Acpi0JQOi
matrix:
- nodejs_version: 10.15.0
- nodejs_version: 8.16.0

install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
- ps: if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'));
appveyor-tools\secure-file -decrypt certs/cert.pfx.enc -secret $env:CERT_PASSPHRASE;
iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1')) > $null;
appveyor-tools\secure-file -decrypt certs/cert.pfx.enc -secret $env:CERT_ENCRYPTION_KEY -salt $env:CERT_ENCRYPTION_SALT > $null;
Import-PfxCertificate -Password (ConvertTo-SecureString $env:CERT_PRIVATE_KEY_PASSWORD -AsPlainText -Force) -FilePath certs/cert.pfx -CertStoreLocation Cert:\CurrentUser\My > $null;
Remove-Item certs/cert.pfx;
Remove-Item Env:/CERT_ENCRYPTION_KEY;
Remove-Item Env:/CERT_ENCRYPTION_SALT;
Remove-Item Env:/CERT_PRIVATE_KEY_PASSWORD;
}
- ps: Install-Product node $env:nodejs_version x64
- set CI=true
Expand Down
Binary file modified certs/cert.pfx.enc
Binary file not shown.
Loading

0 comments on commit 764d7f2

Please sign in to comment.