diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..20bf56d --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,46 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: 'go.mod' + + - name: Setup Node.js environment + uses: actions/setup-node@v3.8.1 + with: + node-version: '16' + + - name: Build + run: | + npm install yarn + yarn install + yarn build + go generate + # go env CGO_ENABLED=0 + go env -w GOOS=windows + # go env GOARCH=amd64 + # yarn go:build:win + go build --tags withsource -ldflags "-H windowsgui" + + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: loract-umi-demo_win_x64 + path: jieshao.loract-umi-demo.exe + retention-days: 3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..878dbe0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: release + uses: actions/create-release@v1 + id: create_release + with: + draft: fast + prerelease: false + release_name: ${{ steps.version.outputs.version }} + tag_name: ${{ github.ref }} + body_path: CHANGELOG.md + - name: build-win + run: | + npm install yarn + yarn install + yarn build + go generate + go env -w GOOS=windows + go build --tags withsource -ldflags "-H windowsgui" + - name: Upload windows artifact + uses: actions/upload-release-asset@v1 + with: + uoload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: jieshao.loract-umi-demo.exe + asset_name: jieshao.loract-umi-demo.exe + asset_content_tpye: application/vnd.microsoft.porttable-executable diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..64c25c5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog +All notable changes to this project will be documented in this file. + +## [Unreleased] + +## [0.0.1] - 2023-09-22 +### 支持 +umi3 +chrome < 117 +取消chrome被自动化软件控制提示 +github actions化 +增加无chrome提示 diff --git a/vendor/github.com/zserge/lorca/locate.go b/vendor/github.com/zserge/lorca/locate.go index 84c014c..52a45dd 100644 --- a/vendor/github.com/zserge/lorca/locate.go +++ b/vendor/github.com/zserge/lorca/locate.go @@ -60,6 +60,7 @@ func LocateChrome() string { } return path } + PromptDownload() return "" }