Skip to content

Commit

Permalink
兼容最新chrome117 (#1)
Browse files Browse the repository at this point in the history
兼容最新chrome117
  • Loading branch information
LY1806620741 authored Sep 22, 2023
1 parent 8865cdb commit ec718a6
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
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.

0 comments on commit ec718a6

Please sign in to comment.