diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aaab016..627b4e9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,16 +12,16 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-16.04, macos-latest] + os: [ubuntu-18.04, macos-latest] steps: - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: 14.x - - name: Set up Go 1.16 + - name: Set up Go 1.17 uses: actions/setup-go@v2 with: - go-version: ^1.16 + go-version: ^1.17 id: go - name: Check out code into the Go module directory @@ -37,7 +37,7 @@ jobs: run: | sudo apt-get update sudo apt-get install --no-install-recommends libwebkit2gtk-4.0-dev - if: ${{ success() && matrix.os == 'ubuntu-16.04' }} + if: ${{ success() && matrix.os == 'ubuntu-18.04' }} - name: Cache .yarn uses: actions/cache@v2 @@ -68,7 +68,7 @@ jobs: - name: Upload a Build Artifact (Linux) uses: actions/upload-artifact@v2.1.4 - if: ${{ success() && matrix.os == 'ubuntu-16.04' }} + if: ${{ success() && matrix.os == 'ubuntu-18.04' }} with: # Artifact name name: writer-linux # optional, default is artifact diff --git a/main.go b/main.go index 8728d6e..9e7ac09 100644 --- a/main.go +++ b/main.go @@ -52,6 +52,10 @@ func ParseToJsString(s string) string { // func SetFile(value string) {file = value;w.Eval("setFileReact(" + ParseToJsString(value) + ")")} func main() { + if os.Args[1] == "-v" || os.Args[1] == "--version" { + println("writer version v1.0.0-alpha.1") + return + } debug := true w = webview.New(debug) defer w.Destroy() diff --git a/package.json b/package.json index 2049ec0..fe94066 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "writer", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "description": "The HTML/CSS/JS component of writer.", "main": "src/index.js", "repository": "https://github.com/retrixe/writer.git",