diff --git a/dev-update-linux b/dev-update-linux index 6e0f68c0..4a9293f0 100644 --- a/dev-update-linux +++ b/dev-update-linux @@ -1,41 +1,5 @@ -echo "Updating the MySQL Driver" -go get -u github.com/go-sql-driver/mysql - -echo "Updating the PostgreSQL Driver" -go get -u github.com/lib/pq - -echo "Updating the MSSQL Driver" -go get -u github.com/denisenkom/go-mssqldb - -echo "Updating bcrypt" -go get -u golang.org/x/crypto/bcrypt - -echo "Updating Argon2" -go get -u golang.org/x/crypto/argon2 - -echo "Updating gopsutil" -go get -u github.com/Azareal/gopsutil - -echo "Updating Gorilla WebSockets" -go get -u github.com/gorilla/websocket - -echo "Updating Sourcemap (dependency for OttoJS)" -go get -u gopkg.in/sourcemap.v1 - -echo "Updating OttoJS" -go get -u github.com/robertkrimen/otto - -echo "Updating the Rez Image Resizer" -go get -u github.com/bamiaux/rez - -echo "Updating Caire" -go get -u github.com/esimov/caire - -echo "Updating some error helpers" -go get -u github.com/pkg/errors - -echo "Updating fsnotify" -go get -u github.com/fsnotify/fsnotify +echo "Updating the dependencies" +go get echo "Updating Gosora" rm ./schema/lastSchema.json diff --git a/dev-update.bat b/dev-update.bat index b27805ae..9ff3f59f 100644 --- a/dev-update.bat +++ b/dev-update.bat @@ -1,112 +1,12 @@ @echo off + echo Updating the dependencies - -echo Updating the MySQL Driver -go get -u github.com/go-sql-driver/mysql +go get if %errorlevel% neq 0 ( pause exit /b %errorlevel% ) -echo Updating the PostgreSQL Driver -go get -u github.com/lib/pq -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the MSSQL Driver -go get -u github.com/denisenkom/go-mssqldb -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the bcrypt library -go get -u golang.org/x/crypto/bcrypt -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the Argon2 library -go get -u golang.org/x/crypto/argon2 -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating /x/sys/windows (dependency for gopsutil) -go get -u golang.org/x/sys/windows -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating wmi (dependency for gopsutil) -go get -u github.com/StackExchange/wmi -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the gopsutil library -go get -u github.com/Azareal/gopsutil -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the WebSockets library -go get -u github.com/gorilla/websocket -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating Sourcemap (dependency for OttoJS) -go get -u gopkg.in/sourcemap.v1 -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating OttoJS -go get -u github.com/robertkrimen/otto -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the Rez Image Resizer -go get -u github.com/bamiaux/rez -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating Caire -go get -u github.com/esimov/caire -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating some error helpers -go get -u github.com/pkg/errors -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating fsnotify -go get -u github.com/fsnotify/fsnotify -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - - echo Updating Gosora cd schema del /Q lastSchema.json diff --git a/docs/installation.md b/docs/installation.md index 27609bdd..f7ced87e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -97,36 +97,10 @@ Linux is similar, however you might need to use cd and mv a bit more like in the You also need to substitute the `gosora.exe` bits for `./Gosora` on Linux. For more info, you might want to take a gander inside the `./run-linux` and `./install-linux` shell files to see how they're implemented. -If you want to skip typing all the `go get`s, you can run `./update-deps.bat` (Windows) or `./update-deps-linux` to do that for you. - ```bash git clone https://github.com/Azareal/Gosora -go get -u github.com/go-sql-driver/mysql - -go get -u golang.org/x/crypto/bcrypt - -go get -u golang.org/x/crypto/argon2 - -go get -u github.com/StackExchange/wmi - -go get -u github.com/Azareal/gopsutil - -go get -u github.com/gorilla/websocket - -go get -u gopkg.in/sourcemap.v1 - -go get -u github.com/robertkrimen/otto - -go get -u github.com/esimov/caire - -go get -u github.com/lib/pq - -go get -u github.com/denisenkom/go-mssqldb - -go get -u github.com/fsnotify/fsnotify - -go get -u github.com/pkg/errors +go get rm -f template_*.go diff --git a/experimental/new-update.bat b/experimental/new-update.bat index 6814804e..6ca0a538 100644 --- a/experimental/new-update.bat +++ b/experimental/new-update.bat @@ -1,112 +1,12 @@ @echo off + echo Updating the dependencies - -echo Updating the MySQL Driver -go get -u github.com/go-sql-driver/mysql +go get if %errorlevel% neq 0 ( pause exit /b %errorlevel% ) -echo Updating the PostgreSQL Driver -go get -u github.com/lib/pq -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the MSSQL Driver -go get -u github.com/denisenkom/go-mssqldb -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the bcrypt library -go get -u golang.org/x/crypto/bcrypt -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the Argon2 library -go get -u golang.org/x/crypto/argon2 -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating /x/sys/windows (dependency for gopsutil) -go get -u golang.org/x/sys/windows -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating wmi (dependency for gopsutil) -go get -u github.com/StackExchange/wmi -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the gopsutil library -go get -u github.com/Azareal/gopsutil -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the WebSockets library -go get -u github.com/gorilla/websocket -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating Sourcemap (dependency for OttoJS) -go get -u gopkg.in/sourcemap.v1 -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating OttoJS -go get -u github.com/robertkrimen/otto -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the Rez Image Resizer -go get -u github.com/bamiaux/rez -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating Caire -go get -u github.com/esimov/caire -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating some error helpers -go get -u github.com/pkg/errors -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating fsnotify -go get -u github.com/fsnotify/fsnotify -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - - echo Building the updater go generate go build ./updater diff --git a/install-linux b/install-linux index 78ed2028..200eda20 100644 --- a/install-linux +++ b/install-linux @@ -1,41 +1,5 @@ -echo "Installing the MySQL Driver" -go get -u github.com/go-sql-driver/mysql - -echo "Installing the PostgreSQL Driver" -go get -u github.com/lib/pq - -echo "Installing the MSSQL Driver" -go get -u github.com/denisenkom/go-mssqldb - -echo "Installing bcrypt" -go get -u golang.org/x/crypto/bcrypt - -echo "Installing Argon2" -go get -u golang.org/x/crypto/argon2 - -echo "Installing gopsutil" -go get -u github.com/Azareal/gopsutil - -echo "Installing Gorilla WebSockets" -go get -u github.com/gorilla/websocket - -echo "Installing Sourcemap (dependency for OttoJS)" -go get -u gopkg.in/sourcemap.v1 - -echo "Installing OttoJS" -go get -u github.com/robertkrimen/otto - -echo "Installing the Rez Image Resizer" -go get -u github.com/bamiaux/rez - -echo "Installing Caire" -go get -u github.com/esimov/caire - -echo "Installing some error helpers" -go get -u github.com/pkg/errors - -echo "Installing fsnotify" -go get -u github.com/fsnotify/fsnotify +echo "Installing the dependencies" +go get echo "Building the installer" cd ./install diff --git a/install.bat b/install.bat index c6aff8d1..b9da8abd 100644 --- a/install.bat +++ b/install.bat @@ -1,112 +1,12 @@ @echo off + echo Installing the dependencies - -echo Installing the MySQL Driver -go get -u github.com/go-sql-driver/mysql +go get if %errorlevel% neq 0 ( pause exit /b %errorlevel% ) -echo Installing the PostgreSQL Driver -go get -u github.com/lib/pq -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing the MSSQL Driver -go get -u github.com/denisenkom/go-mssqldb -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing the bcrypt library -go get -u golang.org/x/crypto/bcrypt -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing the Argon2 library -go get -u golang.org/x/crypto/argon2 -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing /x/sys/windows (dependency for gopsutil) -go get -u golang.org/x/sys/windows -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing wmi (dependency for gopsutil) -go get -u github.com/StackExchange/wmi -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing the gopsutil library -go get -u github.com/Azareal/gopsutil -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing the WebSockets library -go get -u github.com/gorilla/websocket -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing Sourcemap (dependency for OttoJS) -go get -u gopkg.in/sourcemap.v1 -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing the OttoJS -go get -u github.com/robertkrimen/otto -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing the Rez Image Resizer -go get -u github.com/bamiaux/rez -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing Caire -go get -u github.com/esimov/caire -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing some error helpers -go get -u github.com/pkg/errors -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Installing fsnotify -go get -u github.com/fsnotify/fsnotify -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - - echo Building the installer go generate go build "./cmd/install" diff --git a/update-deps-linux b/update-deps-linux index 0470001e..9297409b 100644 --- a/update-deps-linux +++ b/update-deps-linux @@ -1,38 +1,2 @@ -echo "Updating the MySQL Driver" -go get -u github.com/go-sql-driver/mysql - -echo "Updating the PostgreSQL Driver" -go get -u github.com/lib/pq - -echo "Updating the MSSQL Driver" -go get -u github.com/denisenkom/go-mssqldb - -echo "Updating bcrypt" -go get -u golang.org/x/crypto/bcrypt - -echo "Updating Argon2" -go get -u golang.org/x/crypto/argon2 - -echo "Updating gopsutil" -go get -u github.com/Azareal/gopsutil - -echo "Updating Gorilla WebSockets" -go get -u github.com/gorilla/websocket - -echo "Updating Sourcemap (dependency for OttoJS)" -go get -u gopkg.in/sourcemap.v1 - -echo "Updating OttoJS" -go get -u github.com/robertkrimen/otto - -echo "Updating the Rez Image Resizer" -go get -u github.com/bamiaux/rez - -echo "Updating Caire" -go get -u github.com/esimov/caire - -echo "Updating some error helpers" -go get -u github.com/pkg/errors - -echo "Updating fsnotify" -go get -u github.com/fsnotify/fsnotify \ No newline at end of file +echo "Updating the dependencies" +go get \ No newline at end of file diff --git a/update-deps.bat b/update-deps.bat index d3d1a3fb..94964116 100644 --- a/update-deps.bat +++ b/update-deps.bat @@ -1,103 +1,7 @@ @echo off -echo Updating the MySQL Driver -go get -u github.com/go-sql-driver/mysql -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) -echo Updating the PostgreSQL Driver -go get -u github.com/lib/pq -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) -echo Updating the MSSQL Driver -go get -u github.com/denisenkom/go-mssqldb -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating bcrypt -go get -u golang.org/x/crypto/bcrypt -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating Argon2 -go get -u golang.org/x/crypto/argon2 -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating /x/system/windows (dependency for gopsutil) -go get -u golang.org/x/sys/windows -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating wmi (dependency for gopsutil) -go get -u github.com/StackExchange/wmi -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating gopsutil -go get -u github.com/Azareal/gopsutil -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating Gorilla Websockets -go get -u github.com/gorilla/websocket -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating Sourcemap (dependency for OttoJS) -go get -u gopkg.in/sourcemap.v1 -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating OttoJS -go get -u github.com/robertkrimen/otto -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating the Rez Image Resizer -go get -u github.com/bamiaux/rez -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating Caire -go get -u github.com/esimov/caire -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating some error helpers -go get -u github.com/pkg/errors -if %errorlevel% neq 0 ( - pause - exit /b %errorlevel% -) - -echo Updating fsnotify -go get -u github.com/fsnotify/fsnotify +echo Updating the dependencies +go get if %errorlevel% neq 0 ( pause exit /b %errorlevel%