This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
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 #38 from adityapk00/electron
Switch to React UI
- Loading branch information
Showing
336 changed files
with
22,814 additions
and
63,103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
.eslintcache | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
# OSX | ||
.DS_Store | ||
|
||
# flow-typed | ||
flow-typed/npm/* | ||
!flow-typed/npm/module_vx.x.x.js | ||
|
||
# App packaged | ||
release | ||
app/main.prod.js | ||
app/main.prod.js.map | ||
app/renderer.prod.js | ||
app/renderer.prod.js.map | ||
app/style.css | ||
app/style.css.map | ||
dist | ||
dll | ||
main.js | ||
main.js.map | ||
|
||
.idea | ||
npm-debug.log.* | ||
.*.dockerfile |
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 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
.eslintcache | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
# OSX | ||
.DS_Store | ||
|
||
# flow-typed | ||
flow-typed/npm/* | ||
!flow-typed/npm/module_vx.x.x.js | ||
|
||
# App packaged | ||
release | ||
app/main.prod.js | ||
app/main.prod.js.map | ||
app/renderer.prod.js | ||
app/renderer.prod.js.map | ||
app/style.css | ||
app/style.css.map | ||
dist | ||
dll | ||
main.js | ||
main.js.map | ||
|
||
.idea | ||
npm-debug.log.* | ||
__snapshots__ | ||
|
||
# Package.json | ||
package.json | ||
.travis.yml |
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,10 @@ | ||
module.exports = { | ||
extends: 'erb', | ||
settings: { | ||
'import/resolver': { | ||
webpack: { | ||
config: require.resolve('./configs/webpack.config.eslint.js') | ||
} | ||
} | ||
} | ||
} |
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,26 @@ | ||
[ignore] | ||
<PROJECT_ROOT>/app/main.prod.js | ||
<PROJECT_ROOT>/app/main.prod.js.map | ||
<PROJECT_ROOT>/app/dist/.* | ||
<PROJECT_ROOT>/resources/.* | ||
<PROJECT_ROOT>/node_modules/webpack-cli | ||
<PROJECT_ROOT>/release/.* | ||
<PROJECT_ROOT>/dll/.* | ||
<PROJECT_ROOT>/release/.* | ||
<PROJECT_ROOT>/git/.* | ||
|
||
[include] | ||
|
||
[libs] | ||
|
||
[options] | ||
esproposal.class_static_fields=enable | ||
esproposal.class_instance_fields=enable | ||
esproposal.export_star_as=enable | ||
module.name_mapper.extension='css' -> '<PROJECT_ROOT>/internals/flow/CSSModule.js.flow' | ||
module.name_mapper.extension='styl' -> '<PROJECT_ROOT>/internals/flow/CSSModule.js.flow' | ||
module.name_mapper.extension='scss' -> '<PROJECT_ROOT>/internals/flow/CSSModule.js.flow' | ||
module.name_mapper.extension='png' -> '<PROJECT_ROOT>/internals/flow/WebpackAsset.js.flow' | ||
module.name_mapper.extension='jpg' -> '<PROJECT_ROOT>/internals/flow/WebpackAsset.js.flow' | ||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe | ||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue |
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,6 @@ | ||
* text eol=lf | ||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.ico binary | ||
*.icns binary |
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,4 @@ | ||
<!-- | ||
Is this a bug report? | ||
If so, go back and select the "Bug report" option or your issue WILL be closed. | ||
--!> |
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,6 @@ | ||
requiredHeaders: | ||
- Prerequisites | ||
- Expected Behavior | ||
- Current Behavior | ||
- Possible Solution | ||
- Your Environment |
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,17 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pr | ||
- discussion | ||
- e2e | ||
- enhancement | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false |
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,150 @@ | ||
name: Electron CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-16.04, macos-latest, windows-latest] | ||
|
||
steps: | ||
- name: Context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.41.0 | ||
override: true | ||
- name: Use Node.js 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: yarn install | ||
run: | | ||
yarn install | ||
- name: Build and Package@Linux | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
yarn package-linux | ||
- name: Mac Certificate-Gen | ||
if: contains(matrix.os, 'macos') | ||
env: | ||
p12base64: ${{ secrets.p12cert }} | ||
run: | | ||
echo "$p12base64" | openssl base64 -d -out cert.p12 | ||
- name: Mac Certificate-Install | ||
if: contains(matrix.os, 'macos') | ||
uses: apple-actions/import-codesign-certs@v1 | ||
with: | ||
p12-filepath: 'cert.p12' | ||
p12-password: ${{ secrets.p12certpassword }} | ||
- name: Build and Package@Mac | ||
if: contains(matrix.os, 'macos') | ||
env: | ||
appleId: ${{ secrets.appleId }} | ||
appleIdPassword: ${{ secrets.appleIdPassword }} | ||
run: | | ||
yarn package-mac | ||
- name: Build and Package@Win | ||
if: contains(matrix.os, 'windows') | ||
run: | | ||
yarn package-win | ||
- name: Version@Linux@Mac | ||
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') | ||
run: | | ||
./bin/printversion.sh | ||
- name: Version@Win | ||
if: contains(matrix.os, 'windows') | ||
run: | | ||
./bin/printversion.ps1 | ||
- name: Upload artifacts-deb | ||
uses: actions/upload-artifact@v1 | ||
if: contains(matrix.os, 'ubuntu') | ||
with: | ||
name: ${{ matrix.os }} | ||
path: release/Zecwallet_Lite_${{ env.VERSION }}_amd64.deb | ||
- name: Upload artifacts-AppImage | ||
uses: actions/upload-artifact@v1 | ||
if: contains(matrix.os, 'ubuntu') | ||
with: | ||
name: ${{ matrix.os }} | ||
path: release/Zecwallet Lite-${{ env.VERSION }}.AppImage | ||
- name: Upload artifacts-dmg | ||
uses: actions/upload-artifact@v1 | ||
if: contains(matrix.os, 'macos') | ||
with: | ||
name: ${{ matrix.os }} | ||
path: release/Zecwallet Lite-${{ env.VERSION }}.dmg | ||
- name: Upload artifacts-zip | ||
uses: actions/upload-artifact@v1 | ||
if: contains(matrix.os, 'windows') | ||
with: | ||
name: ${{ matrix.os }} | ||
path: release/Zecwallet Lite-${{ env.VERSION }}-win.zip | ||
- name: Upload artifacts-msi | ||
uses: actions/upload-artifact@v1 | ||
if: contains(matrix.os, 'windows') | ||
with: | ||
name: ${{ matrix.os }} | ||
path: release/Zecwallet Lite ${{ env.VERSION }}.msi | ||
|
||
job_signbinaries: | ||
name: Consolidate and sign binaries | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: Version | ||
run: | | ||
./bin/printversion.sh | ||
- name: Download ubuntu | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: ubuntu-16.04 | ||
- name: Download windows | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: windows-latest | ||
- name: Download MacOS | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: macos-latest | ||
- name: Get gpg key | ||
env: | ||
gpgbase64: ${{ secrets.gpgkey }} | ||
run: | | ||
echo "$gpgbase64" | openssl base64 -d -out gpg.key | ||
- name: Import gpg key | ||
run: | | ||
gpg --allow-secret-key-import --import gpg.key | ||
mkdir release | ||
cp windows-latest/* release/ | ||
cp ubuntu-16.04/* release/ | ||
cp macos-latest/* release/ | ||
- name: Sign binaries | ||
env: | ||
APP_VERSION: ${{ env.VERSION }} | ||
run: | | ||
bin/signbinaries.sh | ||
tar -cf artifacts.tar.gz release/signatures*.zip release/Zecwallet* | ||
- name: Upload final artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: artifacts | ||
path: artifacts.tar.gz |
Oops, something went wrong.