Compare commits

..
3 Commits
Author SHA1 Message Date
Vincent Young f8a41debe6 Merge branch 'main' of https://github.com/OwO-Network/DeepLX 2023-02-18 20:46:26 +08:00
Vincent Young e593bceb97 fix: disable cgo 2023-02-18 20:46:16 +08:00
Vincent Young 9e558516ef Update README.md 2023-02-18 20:28:10 +08:00
3 changed files with 8 additions and 26 deletions
+5 -11
View File
@@ -3,7 +3,7 @@
# @Author: Vincent Young
# @Date: 2022-10-20 02:19:06
# @LastEditors: Vincent Young
# @LastEditTime: 2022-10-20 09:51:57
# @LastEditTime: 2023-02-18 20:45:52
# @FilePath: /DeepLX/.cross_compile.sh
# @Telegram: https://t.me/missuo
#
@@ -29,16 +29,10 @@ for pl in ${PLATFORMS}; do
echo "build => ${TARGET}"
if [ "${DEBUG_MODE}" == "debug" ]; then
go build -trimpath -gcflags "all=-N -l" -o ${TARGET} \
-ldflags "-X 'main.version=${BUILD_VERSION}' \
-X 'main.buildDate=${BUILD_DATE}' \
-X 'main.commitID=${COMMIT_SHA1}'\
-w -s"
CGO_ENABLED=0 go build -trimpath -gcflags "all=-N -l" -o ${TARGET} \
-ldflags "-w -s" main.go
else
go build -trimpath -o ${TARGET} \
-ldflags "-X 'main.version=${BUILD_VERSION}' \
-X 'main.buildDate=${BUILD_DATE}' \
-X 'main.commitID=${COMMIT_SHA1}'\
-w -s"
CGO_ENABLED=0 go build -trimpath -o ${TARGET} \
-ldflags "-w -s" main.go
fi
done
+2 -14
View File
@@ -13,7 +13,7 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: "1.18"
go-version: "1.19"
- run: bash .cross_compile.sh
@@ -22,18 +22,6 @@ jobs:
with:
draft: false
files: |
dist/deeplx_darwin_amd64
dist/deeplx_darwin_arm64
dist/deeplx_linux_386
dist/deeplx_linux_amd64
dist/deeplx_linux_arm64
dist/deeplx_linux_armv7
dist/deeplx_linux_mips
dist/deeplx_openbsd_amd64
dist/deeplx_openbsd_arm64
dist/deeplx_freebsd_amd64
dist/deeplx_freebsd_arm64
dist/deeplx_windows_amd64.exe
dist/deeplx_windows_386.exe
dist/*
env:
GITHUB_TOKEN: ${{ secrets.GT_Token }}
+1 -1
View File
@@ -38,7 +38,7 @@ Permanently free DeepL API written in Golang
sudo mv deeplx_darwin_amd64 /usr/local/bin/deeplx
```
2. Download the `me.missuo.deeplx.plist` to `/Users/YOUR_USERNAME/Library/LaunchAgents`.
2. Download the `me.missuo.deeplx.plist` to `~/Library/LaunchAgents`.
```bash
wget https://raw.githubusercontent.com/OwO-Network/DeepLX/main/me.missuo.deeplx.plist -O ~/Library/LaunchAgents/me.missuo.deeplx.plist
```