Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify installation path on Windows and Linux #605

Closed
changkun opened this issue Jul 21, 2016 · 5 comments
Closed

Specify installation path on Windows and Linux #605

changkun opened this issue Jul 21, 2016 · 5 comments

Comments

@changkun
Copy link
Contributor

  • Version: 5.10.5
  • Target: Linux, Windows

For Linux Ubuntu, the installation require a root permission and it will be install on /opt, if my App need to do some file operation, there is no permission to do this.

For Windows, the app installed on C:\Users\user-name\AppData\Local\Programs\, it is quite uncomfortable, why it is not installed on C:\Program Files\ ?

How to specify the installation path on Windows and Linux?

@develar
Copy link
Member

develar commented Jul 21, 2016

On Linux use AppImage instead of deb. Set target to AppImage.

Windows — no way for Squirrel.Windows. For NSIS target — set perMachine to true.

@changkun
Copy link
Contributor Author

changkun commented Jul 21, 2016

@develar

/myapp/node_modules/electron-builder/src/util/httpRequest.ts:122
    callback(hash === this.expected ? null : new Error(`SHA2 checksum mismatch, expected ${this.expected}, got ${hash}`))
                                             ^
Error: SHA2 checksum mismatch, expected , got 803337e37cde3857d05c187ba5d06e8ba3aa55d1524e14ce4a69e15e706fadb4
    at DigestTransform._flush (/myapp/node_modules/electron-builder/src/util/httpRequest.ts:122:46)
    at DigestTransform.<anonymous> (_stream_transform.js:118:12)
    at DigestTransform.g (events.js:260:16)
    at emitNone (events.js:67:13)
    at DigestTransform.emit (events.js:166:7)
    at prefinish (_stream_writable.js:458:12)
    at finishMaybe (_stream_writable.js:466:7)
    at endWritable (_stream_writable.js:478:3)
    at DigestTransform.Writable.end (_stream_writable.js:443:5)
    at IncomingMessage.onend (_stream_readable.js:490:10)
    at IncomingMessage.g (events.js:260:16)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)
    at doNTCallback2 (node.js:452:9)
    at process._tickCallback (node.js:366:17)

Whoops....What's going on here?

@develar
Copy link
Member

develar commented Jul 21, 2016

Please update electron-builder to 5.15.0.

@changkun
Copy link
Contributor Author

Well, AppImage is quite confuse for fresh linux user, I probably will not using this type of target. So basically deb cannot specify a installation path such as /home/user-name/AppName, is that right?

@develar
Copy link
Member

develar commented Jul 21, 2016

basically deb cannot specify a installation path such as /home/user-name/AppName, is that right?

No, you can specify any name. PR welcome. Currently, https://github.com/electron-userland/electron-builder/blob/master/src/targets/LinuxTargetHelper.ts#L12 is hardcoded and not configurable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants