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 Guide #26

Open
hartontw opened this issue Mar 13, 2019 · 5 comments
Open

Windows Guide #26

hartontw opened this issue Mar 13, 2019 · 5 comments

Comments

@hartontw
Copy link

Maybe I have not searched correctly but I don't know how to follow.
nwn-build don't work.

Windows

Install Natively

Install Chocolatey

Install with cmd.exe

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Install with PowerShell.exe

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Install from PowerShell v3+

Set-ExecutionPolicy Bypass -Scope Process -Force; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

Install git

Download

or

choco install git

Install Ruby

choco install ruby

Install nim

Download nim:

Add nim to PATH:

C:\Users\YOUR_USER\.nimble\bin

or where your nim is installed (you can check it when installs).

Install neverwinter_utils.nim

nimble install neverwinter

Install nwnsc

  1. Download
  2. Extract in some folder under your watch
  3. Add nwnsc.exe folder to PATH

Install nwn-devbase

git clone https://github.com/jakkn/nwn-devbase.git
cd nwn-devbase
gem install bundler
bundle install

...

Docker

Install Docker

  1. Sign in or Sign Up
  2. Download
  3. Install
  4. Close and log out
  5. Log in
  6. Enable Hyper-V feature
  7. Restart

Shows errors:

docker run --rm -it -v "$(pwd)/home/devbase/build" jakkn/nwn-devbase pack

Don't:

docker run --rm -it -v "$(pwd):/home/devbase/build" jakkn/nwn-devbase pack
@jakkn
Copy link
Owner

jakkn commented Mar 15, 2019

Hi, I struggle to understand your problem. Can you please explain again and be more specific? Also, you have listed both native and docker install steps. Only one is necessary. Which one are you using? If you have errors please attach them.

@hartontw
Copy link
Author

Hi,

Sorry, I have not expressed myself correctly.

I'm trying to write guides for every OS from the beginning to the first unpack and pack.

I have not experience with docker so I've tried to start with natively workaround. The docker part at the bottom is myself pasting too much by mistake. When I have more experience I will start with the guides for Docker.

Command nwn-build doesn't work for me. Probably I miss something due to my lack of experience, but I don't know what.

@jakkn
Copy link
Owner

jakkn commented Mar 16, 2019

Ah I see! That's great to hear, PRs are most welcome :) I've felt for a long time that the README needs an overhaul to reduce the amount of text.

You're probably just missing the symlink described under Paths. I couldn't figure out how to add nwn-build to PATH on Windows so it became a manual step instead, unfortunately.

Regarding install instructions, I have deliberately avoided including instructions for dependencies because they do not belong here. The command to install chocolatey for instance is not something I want in the README for several reasons, the most important of which are trust and maintenance. Please only include references to official pages where the install instructions are hosted and no copies of commands that install software. The only exception is package manager install commands, like choco install foo, apt install bar, etc.

Looking over the content now I'm starting to think that it may be better to split the instructions in separate files for the different platforms, something like INSTALL.LIN.md, INSTALL.WIN.md, INSTALL.OSX.md. What do you think?

@hartontw
Copy link
Author

You're right about excluding instructions for dependencies because these are subject to change.

I understand what I've missing and now I can finish now Windows Guide Natively workaround. When I have it I will make a pull request with the name you suggested (INSTALL.WIN.md).

@devpitOne
Copy link

Hi, I have the docker version up and running on Windows. I haven't aliased the container to nwn-build yet but when I do I'll let you know.

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

No branches or pull requests

3 participants