diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
index c802265d..99989e10 100644
--- a/.github/release-drafter.yml
+++ b/.github/release-drafter.yml
@@ -1,46 +1,123 @@
-name-template: 'v$NEXT_PATCH_VERSION 🌈'
-tag-template: 'v$NEXT_PATCH_VERSION'
+name-template: "v$NEXT_PATCH_VERSION 🌈"
+tag-template: "v$NEXT_PATCH_VERSION"
categories:
- - title: '🆕 Features'
+ - title: "🆕 Features"
labels:
- - 'feat'
- - 'feature'
- - 'enhancement'
- - title: '🐛 Bug Fixes'
+ - "feat"
+ - "feature"
+ - "enhancement"
+ - title: "🐛 Bug Fixes"
labels:
- - 'fix'
- - 'bugfix'
- - 'bug'
- - title: '🔧 Performance Improvements'
+ - "fix"
+ - "bugfix"
+ - "bug"
+ - title: "🔧 Performance Improvements"
labels:
- - 'perf'
- - title: '🧪 Tests'
- label: 'test'
- - title: '🧰 Maintenance'
- label: 'chore'
- - title: '📖 Document'
- label: 'docs'
- - title: '🚀 CI/CD'
- label: 'ci'
- - title: '🌎 Internationalization'
- label: 'translation'
-change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
+ - "perf"
+ - title: "🧪 Tests"
+ label: "test"
+ - title: "🧰 Maintenance"
+ label: "chore"
+ - title: "📖 Document"
+ label: "docs"
+ - title: "🚀 CI/CD"
+ label: "ci"
+ - title: "🌎 Internationalization"
+ label: "translation"
+change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
version-resolver:
major:
labels:
- - 'major'
+ - "major"
minor:
labels:
- - 'minor'
+ - "minor"
patch:
labels:
- - 'patch'
+ - "patch"
default: patch
template: |
+
+
+
+ | Windows |
+ MacOS |
+ Linux |
+ Android |
+ iOS |
+ Docker |
+ Qnap |
+ Web |
+
+
+ EXE |
+ Portable |
+ DMG |
+ Flathub |
+ SNAP |
+ DEB |
+ AppImage |
+ APK |
+ IPA |
+ - |
+ QPKG |
+ Windows |
+ MacOS |
+ Linux |
+
+
+
+
+ | amd64 |
+ amd64 |
+ - |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ - |
+ - |
+ - |
+ amd64 |
+ arm64 |
+ amd64 |
+ amd64 |
+ 386 |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ 386 |
+
+
+ | Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+
+
+
+
# Release notes
$CHANGES
-
+
# 更新日志
- $CHANGES
\ No newline at end of file
+ $CHANGES
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 60e074f7..29623f42 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -428,7 +428,7 @@ jobs:
asset_path: ui/flutter/dist/*
overwrite: true
build-web:
- if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'web' }}
+ if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'web' || github.event.inputs.platform == 'qnap' }}
runs-on: ubuntu-latest
needs: [get-release]
steps:
@@ -471,44 +471,70 @@ jobs:
|| true
done
done
+ - uses: actions/upload-artifact@v3
+ with:
+ name: web-dist
+ path: dist/zip/
+ - name: Upload
+ uses: shogo82148/actions-upload-release-asset@v1
+ with:
+ upload_url: ${{ needs.get-release.outputs.upload_url }}
+ asset_path: dist/zip/*
+ overwrite: true
+ build-qnap:
+ if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'qnap' }}
+ runs-on: ubuntu-latest
+ needs: [get-release, build-web]
+ steps:
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.8.18'
+ - uses: actions/download-artifact@v3
+ with:
+ name: web-dist
+ path: dist/zip/
+ - name: Build
+ env:
+ VERSION: ${{ needs.get-release.outputs.version }}
+ run: |
sudo apt update -y
- sudo apt install -y pv python2 bsdmainutils
+ sudo apt install -y pv bsdmainutils
wget -O qdk2_0.32.bionic_amd64.deb "https://github.com/qnap-dev/qdk2/releases/download/v0.32/qdk2_0.32.bionic_amd64.deb"
dpkg -X qdk2_0.32.bionic_amd64.deb qdk2 # Direct installs will fail due to missing dependencies!
[[ -d qdk2 ]] || exit 1
+
export PATH=$(pwd)/qdk2/usr/bin:$(pwd)/qdk2/usr/share/qdk2/QDK/bin:${PATH}
wget -O Gopeed.template.tar.gz "https://github.com/GopeedLab/QpkgBuild/raw/refs/heads/master/template/Gopeed.template.tar.gz"
tar -zxf Gopeed.template.tar.gz
[[ -d Gopeed ]] || exit 1
+
goos=linux
goarch_arr=(amd64 arm64)
for goarch in "${goarch_arr[@]}"; do
qarch=x86_64
[[ "${goarch}" == "arm64" ]] && qarch=arm_64
name=gopeed-web-v${VERSION}-${goos}-${goarch}
+ unzip dist/zip/${name}.zip -d dist/${name}
cp dist/${name}/${name}/* Gopeed/${qarch}/
done
cd Gopeed
sed -i -e 's/__QPKG_VER__/${VERSION}/g' qpkg.cfg
qbuild || exit 1
- for f in build/*; do echo ">>> build=[${f}]"; done
+
+ mkdir -p ../dist/qnap
goos=qnap
- goarch_arr=(amd64 arm64)
for goarch in "${goarch_arr[@]}"; do
qarch=x86_64
[[ "${goarch}" == "arm64" ]] && qarch=arm_64
sname=Gopeed_${VERSION}_${qarch}.qpkg
- dname=gopeed-${goos}-v${VERSION}-${goarch}.qpkg
- echo "sname=${sname}, dname=${dname}"
- [[ -f build/${sname} ]] && cp -ra build/${sname} ../dist/zip/${dname}
+ dname=gopeed-v${VERSION}-${goos}-${goarch}.qpkg
+ [[ -f build/${sname} ]] && cp -ra build/${sname} ../dist/qnap/${dname}
done
- for f in ../dist/zip/*; do echo ">>> dist=[${f}]"; done
- cd ..
- name: Upload
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ needs.get-release.outputs.upload_url }}
- asset_path: dist/zip/*
+ asset_path: dist/qnap/*
overwrite: true
build-docker:
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'docker' }}
diff --git a/README.md b/README.md
index 41ec72d0..dad499d9 100644
--- a/README.md
+++ b/README.md
@@ -22,71 +22,80 @@ Visit ✈ [Official Website](https://gopeed.com) | 📖 [Official Docs](https://
## Download
-
-
- | Platform |
- Package Type |
- Download Link |
-
-
-
-
- | Windows |
- EXE Installer |
- Link |
-
-
- Portable ZIP |
- Link |
-
-
- | MacOS |
- DMG Installer |
- Link |
-
-
- | Linux |
- Flathub |
- Link |
-
-
- SNAP |
- Link |
-
-
- DEB |
- Link |
-
-
- AppImage |
- Link |
-
-
- | Android |
- APK |
- Link |
-
-
- | iOS |
- IPA |
- Link |
-
-
- | Qnap |
- QPKG |
- Link |
-
-
- | Web |
- |
- Link |
-
-
- | Docker |
- |
- Link |
-
-
+
+
+ | Windows |
+ MacOS |
+ Linux |
+ Android |
+ iOS |
+ Docker |
+ Qnap |
+ Web |
+
+
+ EXE |
+ Portable |
+ DMG |
+ Flathub |
+ SNAP |
+ DEB |
+ AppImage |
+ APK |
+ IPA |
+ - |
+ QPKG |
+ Windows |
+ MacOS |
+ Linux |
+
+
+
+
+ | amd64 |
+ amd64 |
+ - |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ - |
+ - |
+ - |
+ amd64 |
+ arm64 |
+ amd64 |
+ amd64 |
+ 386 |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ 386 |
+
+
+ | Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+
+
More about installation, please refer to [Installation](https://docs.gopeed.com/install.html)
diff --git a/README_ja-JP.md b/README_ja-JP.md
index 0000bac8..c83b3731 100644
--- a/README_ja-JP.md
+++ b/README_ja-JP.md
@@ -22,71 +22,80 @@ Gopeed (正式名 Go Speed) は `Golang` + `Flutter` によって開発された
## インストール
-
-
- | Platform |
- Package Type |
- Download Link |
-
-
-
-
- | Windows |
- EXE Installer |
- Link |
-
-
- Portable ZIP |
- Link |
-
-
- | MacOS |
- DMG Installer |
- Link |
-
-
- | Linux |
- Flathub |
- Link |
-
-
- SNAP |
- Link |
-
-
- DEB |
- Link |
-
-
- AppImage |
- Link |
-
-
- | Android |
- APK |
- Link |
-
-
- | iOS |
- IPA |
- Link |
-
-
- | Qnap |
- QPKG |
- Link |
-
-
- | Web |
- |
- Link |
-
-
- | Docker |
- |
- Link |
-
-
+
+
+ | Windows |
+ MacOS |
+ Linux |
+ Android |
+ iOS |
+ Docker |
+ Qnap |
+ Web |
+
+
+ EXE |
+ Portable |
+ DMG |
+ Flathub |
+ SNAP |
+ DEB |
+ AppImage |
+ APK |
+ IPA |
+ - |
+ QPKG |
+ Windows |
+ MacOS |
+ Linux |
+
+
+
+
+ | amd64 |
+ amd64 |
+ - |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ - |
+ - |
+ - |
+ amd64 |
+ arm64 |
+ amd64 |
+ amd64 |
+ 386 |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ 386 |
+
+
+ | Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+ Link |
+
+
インストールについての詳細は、[インストール](https://docs.gopeed.com/install.html)を参照してください。
diff --git a/README_vi-VN.md b/README_vi-VN.md
index b0919fd4..6ab0f002 100644
--- a/README_vi-VN.md
+++ b/README_vi-VN.md
@@ -22,71 +22,80 @@ Truy cập ✈ [Trang web chính thức](https://gopeed.com) | 📖 [Tài liệu
## Tải về
Thêm thông tin về cài đặt, vui lòng tham khảo [Cài đặt](https://docs.gopeed.com/install.html)
diff --git a/README_zh-CN.md b/README_zh-CN.md
index 33e6a82b..3f41fae7 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -22,71 +22,80 @@ Gopeed(全称 Go Speed),直译过来中文名叫做`够快下载器`(不
## 下载
-
-
- | 运行平台 |
- 安装包类型 |
- 下载链接 |
-
-
-
-
- | Windows |
- EXE Installer |
- 前往 |
-
-
- Portable ZIP |
- 前往 |
-
-
- | MacOS |
- DMG Installer |
- 前往 |
-
-
- | Linux |
- Flathub |
- 前往 |
-
-
- SNAP |
- 前往 |
-
-
- DEB |
- 前往 |
-
-
- AppImage |
- 前往 |
-
-
- | Android |
- APK |
- 前往 |
-
-
- | iOS |
- IPA |
- 前往 |
-
-
- | Qnap |
- QPKG |
- 前往 |
-
-
- | Web |
- |
- 前往 |
-
-
- | Docker |
- |
- 前往 |
-
-
+
+
+ | Windows |
+ MacOS |
+ Linux |
+ Android |
+ iOS |
+ Docker |
+ Qnap |
+ Web |
+
+
+ EXE |
+ Portable |
+ DMG |
+ Flathub |
+ SNAP |
+ DEB |
+ AppImage |
+ APK |
+ IPA |
+ - |
+ QPKG |
+ Windows |
+ MacOS |
+ Linux |
+
+
+
+
+ | amd64 |
+ amd64 |
+ - |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ - |
+ - |
+ - |
+ amd64 |
+ arm64 |
+ amd64 |
+ amd64 |
+ 386 |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ 386 |
+
+
+ | 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+
+
更多关于安装的内容请参考[安装文档](https://docs.gopeed.com/zh/install.html)
diff --git a/README_zh-TW.md b/README_zh-TW.md
index 62160294..ae4577f5 100644
--- a/README_zh-TW.md
+++ b/README_zh-TW.md
@@ -22,71 +22,80 @@ Gopeed(全稱 Go Speed),是一款使用`Golang`+`Flutter`編寫的高速
## 下載
-
-
- | 運行平台 |
- 安裝包類型 |
- 下載鏈接 |
-
-
-
-
- | Windows |
- EXE Installer |
- 前往 |
-
-
- Portable ZIP |
- 前往 |
-
-
- | MacOS |
- DMG Installer |
- 前往 |
-
-
- | Linux |
- Flathub |
- 前往 |
-
-
- SNAP |
- 前往 |
-
-
- DEB |
- 前往 |
-
-
- AppImage |
- 前往 |
-
-
- | Android |
- APK |
- 前往 |
-
-
- | iOS |
- IPA |
- 前往 |
-
-
- | Qnap |
- QPKG |
- 前往 |
-
-
- | Web |
- |
- 前往 |
-
-
- | Docker |
- |
- 前往 |
-
-
+
+
+ | Windows |
+ MacOS |
+ Linux |
+ Android |
+ iOS |
+ Docker |
+ Qnap |
+ Web |
+
+
+ EXE |
+ Portable |
+ DMG |
+ Flathub |
+ SNAP |
+ DEB |
+ AppImage |
+ APK |
+ IPA |
+ - |
+ QPKG |
+ Windows |
+ MacOS |
+ Linux |
+
+
+
+
+ | amd64 |
+ amd64 |
+ - |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ - |
+ - |
+ - |
+ amd64 |
+ arm64 |
+ amd64 |
+ amd64 |
+ 386 |
+ amd64 |
+ amd64 |
+ amd64 |
+ amd64 |
+ 386 |
+
+
+ | 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+ 前往 |
+
+
更多關於安裝的內容請參考[安裝文檔](https://docs.gopeed.com/zh/install.html)