-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add metadata for linux installers, closes #263 feat: update eslint/prettier config to stacks feat: split electron configs feat: add stx network matrix for debug fix: windows buildgap feat: test something else feat: use the alternate config feat: debug windows fix: testnet/mainnet loading from same config fix: linux icons fix: settimeout errors
- Loading branch information
1 parent
9c4f56a
commit 492ad88
Showing
28 changed files
with
1,294 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: yarn | ||
env: | ||
STX_NETWORK: testnet | ||
|
||
- name: Build | ||
run: yarn tsc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const deepMerge = require('deepmerge'); | ||
|
||
const network = process.env.STX_NETWORK; | ||
|
||
console.log('----------------------------------------------------'); | ||
console.log(network); | ||
console.log('----------------------------------------------------'); | ||
|
||
if (!network) throw new Error('Must define STX_NETWORK environment variable'); | ||
|
||
if (!['mainnet', 'testnet'].includes(network)) | ||
throw new Error(`Unknown STX_NETWORK type of: ${String(network)}`); | ||
|
||
const baseConfig = { | ||
files: ['dist/', 'node_modules/', 'app.html', 'main.prod.js', 'main.prod.js.map', 'package.json'], | ||
dmg: { | ||
contents: [ | ||
{ | ||
x: 130, | ||
y: 220, | ||
}, | ||
{ | ||
x: 410, | ||
y: 220, | ||
type: 'link', | ||
path: '/Applications', | ||
}, | ||
], | ||
}, | ||
win: { | ||
target: ['nsis', 'msi'], | ||
}, | ||
mac: { | ||
hardenedRuntime: false, | ||
category: 'public.app-category.finance', | ||
}, | ||
linux: { | ||
target: ['deb', 'rpm', 'AppImage'], | ||
category: 'Development', | ||
}, | ||
directories: { | ||
buildResources: 'resources', | ||
output: 'release', | ||
}, | ||
publish: { | ||
provider: 'github', | ||
owner: 'blockstack', | ||
repo: 'blockstack', | ||
private: false, | ||
}, | ||
// protocols: { | ||
// name: 'stacks-wallet', | ||
// schemes: ['stacks-wallet'], | ||
// }, | ||
}; | ||
|
||
const networkConfigs = { | ||
testnet: { | ||
productName: 'Stacks Wallet Testnet', | ||
appId: 'so.hiro.StacksWalletTestnet', | ||
artifactName: 'stacks-wallet.testnet.${ext}', | ||
mac: { | ||
icon: 'icon.testnet.icns', | ||
appId: 'so.hiro.StacksWalletTestnet', | ||
}, | ||
linux: { | ||
icon: './icons', | ||
}, | ||
// macos `Application Support` dir name | ||
extraMetadata: { | ||
productName: 'StacksWalletTestnet', | ||
}, | ||
}, | ||
mainnet: { | ||
productName: 'Stacks Wallet', | ||
appId: 'so.hiro.StacksWallet', | ||
icon: 'icon-512x512.png', | ||
artifactName: 'stacks-wallet.${ext}', | ||
mac: { | ||
icon: 'icon.icns', | ||
appId: 'so.hiro.StacksWallet', | ||
}, | ||
linux: { | ||
icon: 'icon-512x512.png', | ||
}, | ||
extraMetadata: { | ||
productName: 'StacksWallet', | ||
}, | ||
}, | ||
}; | ||
|
||
const mergedConfig = deepMerge(baseConfig, networkConfigs[network]); | ||
|
||
console.log(JSON.stringify(mergedConfig, null, 2)); | ||
|
||
module.exports = mergedConfig; |
Oops, something went wrong.