Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

兼容最新chrome117 #1

Merged
merged 16 commits into from
Sep 22, 2023
46 changes: 46 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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提示
1 change: 1 addition & 0 deletions vendor/github.com/zserge/lorca/locate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.