Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #86 from parity-js/am-fix-windows
Browse files Browse the repository at this point in the history
Fix windows (CI & Electron)
  • Loading branch information
General-Beck authored May 5, 2018
2 parents 8302cdd + 95799dc commit 219c128
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ publish:snap:
variables:
BUILD_ARCH: amd64
before_script:
- export VERSION=$(node -p "require('./package.json').version")
- export VERSION=$(grep -m 1 "version" package.json | awk '{print $2}' | tr -d '",' | tr -d "\n")&&echo "Version:" $VERSION
script:
- scripts/publish-snap.sh
tags:
- rust-stable
#test PR check1
2 changes: 1 addition & 1 deletion electron/fetchParity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = (mainWindow) => {
// Fetching from https://vanity-service.parity.io/parity-binaries
return fsExists(parityPath())
.catch(() => axios.get(`https://vanity-service.parity.io/parity-binaries?version=${channel}&os=${getOs()}&architecture=${getArch()}`)
.then((response) => response.data[0].files.find(({ name }) => name === 'parity'))
.then((response) => response.data[0].files.find(({ name }) => name === 'parity' || name === 'parity.exe'))
.then(({ downloadUrl }) => download(
mainWindow,
downloadUrl,
Expand Down
2 changes: 1 addition & 1 deletion electron/util/parityPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

const { app } = require('electron');

const parityPath = `${app.getPath('userData')}/parity`;
const parityPath = `${app.getPath('userData')}/parity${process.platform === 'win32' ? '.exe' : ''}`;

// TODO parityPath is now in the Application Data folder by default, it would
// be nice to first look if /usr/bin/parity exists (and return that as
Expand Down

0 comments on commit 219c128

Please sign in to comment.