From b57e373a993d08df21be98403d96415beed51b66 Mon Sep 17 00:00:00 2001 From: dylan <331506+macdylan@users.noreply.github.com> Date: Sun, 16 Apr 2023 19:23:32 +0800 Subject: [PATCH] release on tags --- .github/workflows/go.yml | 5 +++-- README.md | 7 +++++++ README.zh-cn.md | 5 +++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b262e9a..5634317 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -4,7 +4,9 @@ name: Build on: - push + push: + tags: + - "v*.*" jobs: build: @@ -25,7 +27,6 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/v') with: draft: true prerelease: false diff --git a/README.md b/README.md index d3ebc90..80f4727 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,10 @@ If UDP Discover can not work, use `sm2uploader -host 192.168.1.20 /file.gcode` t If `host` in `knownhosts`, `-host printer-id` is very convenient. Get help: `sm2uploader -h` + +## Fix the "can not be opened because it is from an unidentified developer" + +Solution: https://osxdaily.com/2012/07/27/app-cant-be-opened-because-it-is-from-an-unidentified-developer/ + +or: +`xattr -d com.apple.quarantine sm2uploader-darwin` diff --git a/README.zh-cn.md b/README.zh-cn.md index c229a75..edf7242 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -34,3 +34,8 @@ Upload finished. 如果 `host` 被发现过或者连接过,它会存在于 `knownhosts` 中,直接使用 id 进行连接会更加简洁: `sm2uploader -host A350-3DP /file.gcode` 更多参数:`sm2uploader -h` + +## 在 macOS 系统提示文件无法打开的解决方法 +macOS 不允许直接打开未经数字签名的程序,参考解决方案: https://osxdaily.com/2012/07/27/app-cant-be-opened-because-it-is-from-an-unidentified-developer/ + +也可以直接在终端执行 `xattr -d com.apple.quarantine sm2uploader-darwin` \ No newline at end of file