-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from celo-tools/desktop
Major update: Create desktop apps and promote out of Beta
- Loading branch information
Showing
202 changed files
with
10,595 additions
and
2,506 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ node_modules | |
dist | ||
webpack.config.js | ||
jest.config.js | ||
spec | ||
spec | ||
electron | ||
scripts |
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,27 @@ | ||
--- | ||
name: Bug Report | ||
about: Report a bug in CeloWallet.app | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
#### App Version and Operating System | ||
|
||
<!-- App version can be found in the About Wallet modal, link in the footer --> | ||
|
||
- Tested on **version_here** | ||
- Platform and version: **e.g. Web / Mac 10.13.5 / Windows 10 / ..** | ||
|
||
#### Expected behavior | ||
|
||
<!-- What did you expect to happen? --> | ||
|
||
#### Actual behavior | ||
|
||
<!-- What's the current behavior you're seeing? --> | ||
|
||
#### Steps to reproduce the behavior | ||
|
||
<!-- Explain steps to reproduce or provide a screenshot / gif --> |
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,12 @@ | ||
--- | ||
name: Feature Request | ||
about: Request a feature for CeloWallet.app | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
#### Feature Description | ||
|
||
<!-- Share some info about what you'd like to see added or changed --> |
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,65 @@ | ||
name: bundle-desktop | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- staging | ||
- production | ||
- desktop | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-and-build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Run linter | ||
run: yarn lint | ||
|
||
# TODO re-enable | ||
# - name: Run test | ||
# shell: bash | ||
# run: yarn test | ||
|
||
- name: Build with webpack for electron | ||
shell: bash | ||
run: ./scripts/build.sh -n Mainnet -e | ||
|
||
- name: Build on Mac | ||
run: yarn electron-builder --mac --publish never | ||
env: | ||
CSC_LINK: ${{ secrets.MAC_CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }} | ||
if: runner.os == 'macOS' | ||
|
||
- name: Build on Windows | ||
run: yarn electron-builder --win --publish never | ||
if: runner.os == 'Windows' | ||
|
||
- name: Install deps for Linux | ||
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev | ||
if: runner.os == 'Linux' | ||
|
||
- name: Build on Linux | ||
run: yarn electron-builder --linux --publish never | ||
if: runner.os == 'Linux' | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: celowallet-artifacts | ||
path: | | ||
dist-electron/*-mac*.dmg | ||
dist-electron/*-mac*.zip | ||
dist-electron/*-linux*.AppImage | ||
dist-electron/*-win*.exe |
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,56 @@ | ||
name: publish-desktop | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Run linter | ||
run: yarn lint | ||
|
||
# TODO re-enable | ||
# - name: Run test | ||
# shell: bash | ||
# run: yarn test | ||
|
||
- name: Build with webpack for electron | ||
shell: bash | ||
run: ./scripts/build.sh -n Mainnet -e | ||
|
||
- name: Build on Mac | ||
run: yarn electron-builder --mac --publish always | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CSC_LINK: ${{ secrets.MAC_CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }} | ||
APPLE_ID: ${{ secrets.APPLE_ID }} | ||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} | ||
if: runner.os == 'macOS' | ||
|
||
- name: Build on Windows | ||
run: yarn electron-builder --win --publish always | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: runner.os == 'Windows' | ||
|
||
- name: Install deps for Linux | ||
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev | ||
if: runner.os == 'Linux' | ||
|
||
- name: Build on Linux | ||
run: yarn electron-builder --linux --publish always | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: runner.os == 'Linux' |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.cache/ | ||
coverage/ | ||
dist/ | ||
dist-electron/ | ||
node_modules/ | ||
*.log | ||
|
||
|
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,56 @@ | ||
appId: app.celo.wallet | ||
productName: Celo Wallet | ||
|
||
directories: | ||
app: dist | ||
output: dist-electron | ||
buildResources: electron/build | ||
|
||
protocols: | ||
name: Celo Wallet | ||
schemes: | ||
- celowallet | ||
|
||
afterSign: scripts/notarize.js | ||
|
||
mac: | ||
artifactName: ${productName}-${version}-${os}.${ext} | ||
category: public.app-category.wallet | ||
hardenedRuntime: true | ||
entitlements: electron/build/mac/entitlements.plist | ||
entitlementsInherit: electron/build/mac/entitlements.plist | ||
target: | ||
- dmg | ||
- zip | ||
|
||
linux: | ||
artifactName: ${productName}-${version}-${os}-${arch}.${ext} | ||
category: Finance | ||
target: | ||
- target: AppImage | ||
arch: | ||
- x64 | ||
|
||
win: | ||
artifactName: ${productName}-${version}-${os}-${arch}.${ext} | ||
# icon: build/windows/app.ico | ||
# certificateSubjectName: Ledger SAS | ||
# certificateSha1: 7DD9ACB2EF0402883C65901EBBAFD06E5293D391 | ||
# signingHashAlgorithms: | ||
# - sha256 | ||
target: | ||
- target: nsis | ||
arch: | ||
- x64 | ||
|
||
nsis: | ||
oneClick: false | ||
perMachine: true | ||
allowToChangeInstallationDirectory: true | ||
installerIcon: installer.ico | ||
uninstallerIcon: installer.ico | ||
|
||
publish: | ||
provider: github | ||
owner: celo-tools | ||
repo: celo-web-wallet |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.