Skip to content

Commit

Permalink
feat: electron app
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Aug 21, 2023
1 parent 8f1a85e commit 023a937
Show file tree
Hide file tree
Showing 4 changed files with 1,079 additions and 119 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-electron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build, release electron app

on: push

jobs:
release:
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
GH_USER: ${{secrets.GH_USER}}
GH_EMAIL: ${{secrets.GH_EMAIL}}
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v1

- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm add -g pnpm
- run: pnpm install


- name: Build/release Electron app
uses: paneron/[email protected]
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.GH_TOKEN }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
25 changes: 23 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,21 @@
"bin",
"lib"
],
"main": "lib/express-router.js",
"main": "build/electron.js",
"build": {
"appId": "io.veramo.explore",
"mac": {
"category": "your.app.category.type"
},
"files": [
"build/**/*",
"node_modules/**/*",
"electron/**/*"
],
"directories": {
"buildResources": "assets"
}
},
"bin": {
"agent-explore": "./bin/bin.js"
},
Expand All @@ -24,7 +38,11 @@
"release": "semantic-release",
"agent-explore": "./bin/bin.js",
"upgrade-veramo": "pnpm add -D @veramo/core @veramo/did-discovery @veramo/credential-w3c @veramo/data-store @veramo/did-comm @veramo/did-jwt @veramo/did-resolver @veramo/message-handler @veramo/remote-client @veramo/selective-disclosure @veramo/credential-eip712 @veramo/data-store-json @veramo/did-manager @veramo/kms-web3 @veramo/key-manager @veramo/did-provider-ethr @veramo/utils @veramo/did-provider-peer @veramo/kms-local",
"upgrade-veramo:next": "pnpm add -D @veramo/core@next @veramo/did-discovery@next @veramo/credential-w3c@next @veramo/data-store@next @veramo/did-comm@next @veramo/did-jwt@next @veramo/did-resolver@next @veramo/message-handler@next @veramo/remote-client@next @veramo/selective-disclosure@next @veramo/credential-eip712@next @veramo/data-store-json@next @veramo/did-manager@next @veramo/kms-web3@next @veramo/key-manager@next @veramo/did-provider-ethr@next @veramo/utils@next @veramo/did-provider-peer@next @veramo/kms-local@next"
"upgrade-veramo:next": "pnpm add -D @veramo/core@next @veramo/did-discovery@next @veramo/credential-w3c@next @veramo/data-store@next @veramo/did-comm@next @veramo/did-jwt@next @veramo/did-resolver@next @veramo/message-handler@next @veramo/remote-client@next @veramo/selective-disclosure@next @veramo/credential-eip712@next @veramo/data-store-json@next @veramo/did-manager@next @veramo/kms-web3@next @veramo/key-manager@next @veramo/did-provider-ethr@next @veramo/utils@next @veramo/did-provider-peer@next @veramo/kms-local@next",
"build-electron": "cross-env PUBLIC_URL=./ craco build",
"electron": "electron .",
"electron-dev": "cross-env ELECTRON_START_URL=http://localhost:3000 electron .",
"electron-dist": "electron-builder"
},
"homepage": "https://explore.veramo.dev",
"eslintConfig": {
Expand Down Expand Up @@ -142,9 +160,12 @@
"assert": "npm:assert-browserify@^2.0.0",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
"cross-env": "^7.0.3",
"crypto": "npm:crypto-browserify@^3.12.0",
"date-fns": "^2.30.0",
"did-resolver": "^4.1.0",
"electron": "^26.0.0",
"electron-builder": "^24.6.3",
"ethr-did-resolver": "^8.0.0",
"https-browserify": "^1.0.0",
"husky": "^8.0.3",
Expand Down
Loading

0 comments on commit 023a937

Please sign in to comment.