Skip to content

Latest commit

 

History

History
83 lines (62 loc) · 3.97 KB

3A3-linux-optional-upgrade-to-devel.md

File metadata and controls

83 lines (62 loc) · 3.97 KB

HOME

0) COMMON : INTRODUCTION

1) COMMON : MESSAGE OGS MODERATORS

2) COMMON : GENERATE THE APIKEY

3A) FOR LINUX

3B) FOR WINDOWS

3A3) Optional : Upgrade gtp2ogs from old branch to “devel” branch (latest)

This step is highly recommended, even though you can skip it.

The last stable release of gtp2ogs is old does not include recent fixes and improvements, see the official gtp2ogs devel branch's github

note: as of february 2019, the old gtp2ogs.js has been split into many modules. To upgrade your gtp2ogs version to devel, this is not relevant, because all we have to do is regardless just to replace old gtp2ogs folder with the devel one.

Upgrade to online-go/devel latest version

To upgrade gtp2ogs.js to devel branch, we’ll use the all in one command below:

note 2: if backup folder already exists, it will tell that to you, but this doesnt prevent our all in one command from being executed (backup folder content will just be overwritten)

# Making backup of existing gtp2ogs && \
mkdir ~/gtp2ogs-backup ; \
cd ~/gtp2ogs-node/node_modules/gtp2ogs && \
cp -rf * ~/gtp2ogs-backup/ && \
# Delete existing gtp2ogs folder && \
cd .. && \
rm -rf gtp2ogs && \
# Install gtp2ogs latest devel cloned from github && \
git clone -b devel https://github.com/online-go/gtp2ogs && \
cd gtp2ogs && \
git branch && \
# Installing locally extra needed dependencies from new branch's package.json && \
npm install && \
ls

node l 003

If you just want to use gtp2ogs easily (not dev), you can also copy paste (from downloaded ZIP on github website) any other branch that has some extra features or fixes, for example using this command git clone -b roy7live-textonly-phoenixgo https://github.com/wonderingabout/gtp2ogs && \ in the same command line than above.

For developers

If you're a developper, you'd most likely want to use your own repository, so you'd run the same command as above, except that you'd use devel or any other branch from YOUR repository (i am wonderingabout for example git clone -b devel https://github.com/wonderingabout/gtp2ogs && \)

node l 004

This method installs gtp2ogs locally in your home folder, which allows to easily change branches with git checkout and do any other dev operation very conveniently!

Next page ->