mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-02-16 09:49:27 +00:00
Bump required Go version to 1.20
This commit is contained in:
parent
2040a356fd
commit
7f2adb2df2
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -21,8 +21,8 @@ jobs:
|
|||||||
- macos-13
|
- macos-13
|
||||||
- ubuntu-20.04
|
- ubuntu-20.04
|
||||||
- ubuntu-22.04
|
- ubuntu-22.04
|
||||||
go-version: [1.18]
|
go-version: [ 1.21 ]
|
||||||
node-version: [16]
|
node-version: [ 16 ]
|
||||||
|
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
* Bumped minimum reqiured Go version from 1.18 to 1.20.
|
||||||
|
|
||||||
New features:
|
New features:
|
||||||
|
|
||||||
* Added log view (#53, #54).
|
* Added log view (#53, #54).
|
||||||
|
6
build.js
6
build.js
@ -50,18 +50,18 @@ function isNullish(val) {
|
|||||||
return val === undefined || val === null;
|
return val === undefined || val === null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that Go ^1.18 is installed.
|
// Check that Go ^1.20 is installed.
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const goMinorVersion = /go1\.([0-9][0-9])/.exec(
|
const goMinorVersion = /go1\.([0-9][0-9])/.exec(
|
||||||
execSync('go version').toString()
|
execSync('go version').toString()
|
||||||
)?.pop();
|
)?.pop();
|
||||||
|
|
||||||
if (isNullish(goMinorVersion) || (parseInt(goMinorVersion) < 18)) {
|
if (isNullish(goMinorVersion) || (parseInt(goMinorVersion) < 20)) {
|
||||||
throw new Error();
|
throw new Error();
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
missingDependencies.push({ name: 'Go ^1.18 ^16', url: 'https://go.dev/doc/install' });
|
missingDependencies.push({ name: 'Go ^1.20', url: 'https://go.dev/doc/install' });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that Node.js ^16 is installed.
|
// Check that Node.js ^16 is installed.
|
||||||
|
@ -8,7 +8,7 @@ If you just want to install Rolens, please refer to the [installation document](
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
Rolens is written in Go, so you should download the Go compiler from [the download page](https://go.dev/dl/). The minimum version required is 1.18. You can confirm whether it's installed correctly by running `go version` and checking that it outputs something similar to `go1.18.2`.
|
Rolens is written in Go, so you should download the Go compiler from [the download page](https://go.dev/dl/). The minimum version required is 1.20. You can confirm whether it's installed correctly by running `go version` and checking that it outputs something similar to `go1.20.4` or higher.
|
||||||
|
|
||||||
Furthermore, you need to have [Wails ^3.1](https://wails.io/docs/gettingstarted/installation) installed: `go install github.com/wailsapp/wails/v2/cmd/wails@latest`. Wails may have platform-specific dependencies; you can consult [`wails doctor`](https://wails.io/docs/reference/cli#doctor) to find out what dependencies Wails needs and how to install them.
|
Furthermore, you need to have [Wails ^3.1](https://wails.io/docs/gettingstarted/installation) installed: `go install github.com/wailsapp/wails/v2/cmd/wails@latest`. Wails may have platform-specific dependencies; you can consult [`wails doctor`](https://wails.io/docs/reference/cli#doctor) to find out what dependencies Wails needs and how to install them.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user