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

feat: add 'ipfs' to PATH on Windows #897

Merged
merged 5 commits into from
Apr 9, 2019
Merged

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Apr 6, 2019

During installation, append ipfs-desktop/assets/bin-win to the PATH on Windows. It's also removed during installation. The directory contains a script that executes our bin script that redirects the arguments to the actual binary. That way we have some flexibility about what we can do in the future.

The code used to manipulate the PATH comes from this resources:

Also, I had to disable "warnings as errors" because Electron Builder is using Macros for custom install and uninstall sections so when building the installer, NSIS didn't know if we were calling the functions in the correct places. It threw a warning that was treated as an error. Not anymore.

Addresses #727.

hacdias added 3 commits April 6, 2019 22:54
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@ghost ghost assigned hacdias Apr 6, 2019
@ghost ghost added the in progress label Apr 6, 2019
@hacdias hacdias changed the title feat: add 'ipfs' to PATH on Windows wip: add 'ipfs' to PATH on Windows Apr 6, 2019
hacdias added 2 commits April 6, 2019 23:25
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias hacdias changed the title wip: add 'ipfs' to PATH on Windows feat: add 'ipfs' to PATH on Windows Apr 6, 2019
@hacdias hacdias requested review from olizilla and lidel April 6, 2019 22:35
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Sadly I don't have Windows VM to test this :'(

@djdv are you able to do a quick check, or know who can?

(npm ci && npm run build will output installer to dist/, I think)

@djdv
Copy link

djdv commented Apr 9, 2019

I encountered an unrelated issue with npx during install (zkat/npx#209)
But besides that, everything worked as expected on my machine. 👍
After installation, the PATH var was modified to include the mentioned path, when uninstalled, it was no longer there in new environments.
Running ipfs.cmd gave me no issues after installation.

@hacdias
Copy link
Member Author

hacdias commented Apr 9, 2019

Per @djdv feedback, I'm merging this PR 😄 Thanks for checking it out.

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

Successfully merging this pull request may close these issues.

3 participants