Skip to content

Commit

Permalink
event
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Feb 13, 2024
1 parent 1449083 commit 025982f
Show file tree
Hide file tree
Showing 9 changed files with 7,996 additions and 65 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ jobs:
with:
# Artifact name
name: ${{ matrix.os }}-artifact
# Directory containing files to upload
path: dist_electron
# Directory containing files to upload
# The build generated a folder with the following structure: release/RELEASE_VERSION/*
path: release/**/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ witnet
/tests/e2e/screenshots/
sheikah-darwin-x64
/src/components.d.ts
/release

# local env files
.env
Expand Down
20 changes: 10 additions & 10 deletions electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
//
// ├─┬ dist-electron
// │ ├─┬ main
// │ │ └── index.js > Electron-Main
// │ │ └── index.ts > Electron-Main
// │ └─┬ preload
// │ └── index.js > Preload-Scripts
// │ └── index.ts > Preload-Scripts
// ├─┬ dist
// │ └── index.html > Electron-Renderer
//
import { fileURLToPath } from 'node:url'
import { dirname } from 'node:path'
import { join, dirname } from 'node:path'
import { release } from 'os'
import { app, BrowserWindow, shell, ipcMain, Menu } from 'electron'
import kill from 'tree-kill'

import { Status, STATUS_PATH } from '../constants'
import { WalletManager } from '../walletManager'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

process.env.DIST_ELECTRON = join(__dirname, '..')
process.env.DIST = join(process.env.DIST_ELECTRON, '../dist')
process.env.PUBLIC = app.isPackaged
? process.env.DIST
: join(process.env.DIST_ELECTRON, '../public')

import { app, BrowserWindow, shell, ipcMain, Menu } from 'electron'
import { release } from 'os'
import { join } from 'path'
import { Status, STATUS_PATH } from '../constants'
import { WalletManager } from '../walletManager'
import kill from 'tree-kill'

// Disable GPU Acceleration for Windows 7
if (release().startsWith('6.1')) app.disableHardwareAcceleration()

Expand Down
79 changes: 40 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,59 +40,29 @@
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/vue-fontawesome": "^3.0.5",
"@fortawesome/vue-fontawesome": "^3.0.6",
"@intlify/unplugin-vue-i18n": "^2.0.0",
"@rushstack/eslint-patch": "^1.6.1",
"@typescript-eslint/parser": "^6.18.1",
"@vitejs/plugin-vue": "^5.0.3",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vueuse/core": "^10.7.2",
"autoprefixer": "^10.4.16",
"axios": "^1.6.5",
"axios": "^1.6.7",
"big.js": "^6.2.1",
"cbor2": "^1.1.0",
"date-fns": "^3.2.0",
"electron": "^28.1.3",
"electron-builder": "^24.9.1",
"electron-devtools-installer": "^3.2.0",
"element-plus": "^2.5.1",
"eslint": "^8.56.0",
"eslint-import-resolver-alias": "1.1.2",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-vue": "9.20.0",
"cbor2": "^1.2.2",
"date-fns": "^3.3.1",
"element-plus": "^2.5.5",
"fs-extra": "^11.2.0",
"lint-staged": "^15.2.0",
"postcss": "^8.4.33",
"prettier": "3.1.1",
"progress-stream": "^2.0.0",
"rpc-websockets": "^7.9.0",
"sass": "^1.69.7",
"semver": "^7.5.4",
"semver": "^7.6.0",
"tar": "^6.2.0",
"tree-kill": "^1.2.2",
"typescript": "^5.3.3",
"unocss": "^0.58.3",
"unplugin-auto-import": "^0.17.3",
"unplugin-vue-components": "^0.26.0",
"uuid": "^9.0.1",
"vite": "^5.0.11",
"vite-plugin-electron": "^0.28.0-beta.2",
"vite-plugin-electron-renderer": "^0.14.5",
"vite-svg-loader": "^5.1.0",
"vue": "^3.4.10",
"vue-i18n": "^9.9.0",
"vue": "3.4.18",
"vue-i18n": "^9.9.1",
"vue-json-tree": "^0.4.3",
"vue-observe-visibility": "^1.0.0",
"vue-router": "^4.2.5",
"vue-tsc": "^1.8.27",
"vuex": "^4.1.0",
"witnet-radon-js": "^0.11.0",
"witnet-requests": "^0.9.12",
"@vue/test-utils": "^2.4.3",
"jsdom": "^24.0.0",
"vitest": "^1.1.3"
"witnet-requests": "^0.9.12"
},
"bugs": {
"url": "https://github.com/witnet/sheikah/issues"
Expand All @@ -105,5 +75,36 @@
},
"volta": {
"node": "20.9.0"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.7.2",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.4.3",
"autoprefixer": "^10.4.17",
"electron-builder": "^24.9.1",
"electron-devtools-installer": "^3.2.0",
"electron": "^28.2.2",
"eslint-import-resolver-alias": "1.1.2",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-vue": "9.21.1",
"eslint": "^8.56.0",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"postcss": "^8.4.35",
"prettier": "3.2.5",
"sass": "^1.70.0",
"typescript": "^5.3.3",
"unplugin-auto-import": "^0.17.5",
"unplugin-vue-components": "^0.26.0",
"vite-plugin-electron-renderer": "^0.14.5",
"vite-plugin-electron": "^0.28.2",
"vite-svg-loader": "^5.1.0",
"vite": "^5.1.1",
"vitest": "^1.1.3",
"vue-tsc": "^1.8.27"
}
}
Loading

0 comments on commit 025982f

Please sign in to comment.