From 445c178fcbb4631ee058490aa3bb5e661fd0ee0d Mon Sep 17 00:00:00 2001 From: Ibrahim Ansari Date: Mon, 20 Sep 2021 18:04:29 +0530 Subject: [PATCH] 1.0.0-alpha.1 + Go 1.17/Ubuntu 18.04 builds. --- .github/workflows/go.yml | 10 +++++----- main.go | 4 ++++ package.json | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) 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",