Skip to content

Commit

Permalink
Merge pull request #7 from nothingalike/forge-binaries
Browse files Browse the repository at this point in the history
Forge binaries
  • Loading branch information
nothingalike authored Dec 27, 2020
2 parents 753cc19 + 7894fe7 commit 9d90e7b
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 88 deletions.
162 changes: 82 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "LIFT",
"name": "lift-wallet",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
created(){
ipcRenderer.on('res:start-cnode', (_, args) => {
console.log(args.cnode);
console.log(args);
if(args.cnode) {
this.toggleStartCnode = true;
this.bootingCnode = true;
Expand Down
7 changes: 3 additions & 4 deletions src/cardano.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import axios from 'axios'
const isDevelopment = process.env.NODE_ENV !== 'production'
const baseUrl = 'http://localhost:8090'

export const cardanoPath = isDevelopment ? path.resolve(__dirname, '..', 'cardano')
: (process.platform == 'darwin')
? path.resolve(__dirname, '..', '..', 'cardano')
: '';
export const cardanoPath = isDevelopment
? path.resolve(__dirname, '..', 'cardano')
: path.resolve(__dirname, '..', '..', 'cardano') ;
export const dbPath = path.resolve(cardanoPath, 'db');
export const walletDbPath = path.resolve(cardanoPath, 'wallets');
export const socketPath = (process.platform == 'win32') ? '\\\\.\\pipe\\cardano-node-mainnet' : path.resolve(cardanoPath, 'socket');
Expand Down
19 changes: 17 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,23 @@ module.exports = {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
"mac": {
"extraFiles": [
appId: "com.electron.lift-wallet",
productName: "LIFT Wallet",
win: {
target: "nsis",
extraFiles: [
"cardano/win32/**/*",
"cardano/configs/**/*"
]
},
nsis: {
oneClick: false,
perMachine: true,
allowToChangeInstallationDirectory: true
},
mac: {
target: "dmg",
extraFiles: [
"cardano/darwin/**/*",
"cardano/configs/**/*"
]
Expand Down

0 comments on commit 9d90e7b

Please sign in to comment.