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

Windows Portable App #417

Merged
merged 11 commits into from Apr 16, 2016
Merged

Windows Portable App #417

merged 11 commits into from Apr 16, 2016

Conversation

feross
Copy link
Member

@feross feross commented Apr 16, 2016

Fixes #358

Background

Changes

  • A new *-win.zip output file is now produced, which just contains the electron-packaged windows app, with an added empty "Portable Settings" folder.
  • At startup, when a "Portable Settings" folder is found next to the WebTorrent.exe file, then the app is in "Portable Mode" which entails:
    • Electron "userData" folder is set to the "Portable Settings" folder
    • The config.json file is saved in the "Portable Settings" folder
    • Torrent posters and torrent files are saved in the "Portable Settings" folder
    • The default download folder is set to the "Portable Settings" folder

Am I forgetting anything?

PortableApps.com Platform

I started a discussion to get WebTorrent Desktop included in the PortableApps.com bundle.

Before this, the callbacks would not being called, which would lead to
an incomplete build on non-OS X platforms when trying to build all for
all platforms.
This makes it consistent with how the windows build always produces the
.nupkg autoupdate files
Move "npm prune && npm dedupe" into the release script. Remove an extra
"npm install"
When a folder named "Portable Settings" exists in same folder as
WebTorrent.exe, then use it instead of the default application config
path.

Closes #358
@feross feross changed the title Portable Windows Portable App Apr 16, 2016
- `--sign` - Sign the application (OS X, Windows)
- `--package=[type]` - Package single output type.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@dcposch
Copy link
Contributor

dcposch commented Apr 16, 2016

LGTM

@dcposch dcposch merged commit dae4d5b into master Apr 16, 2016
@feross feross deleted the portable branch April 18, 2016 23:46
mathiasvr pushed a commit to mathiasvr/webtorrent-desktop that referenced this pull request May 26, 2016
* packager: call callbacks consistently

Before this, the callbacks would not being called, which would lead to
an incomplete build on non-OS X platforms when trying to build all for
all platforms.

* packager: Always produce OS X update file regardless of --package option

This makes it consistent with how the windows build always produces the
.nupkg autoupdate files

* packager: fix duplicate npm install

Move "npm prune && npm dedupe" into the release script. Remove an extra
"npm install"

* Make Windows portable app

When a folder named "Portable Settings" exists in same folder as
WebTorrent.exe, then use it instead of the default application config
path.

Closes webtorrent#358

* packager: remove redundant signing warning

* cross platform zip function

* Set config file path to match config.CONFIG_PATH

* portable app: make electron settings portable

* portable: fix poster/torrent paths

* use cross-zip

* portable app: default download folder inside 'Portable Settings'
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants