diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index dd4d4ef..0000000 --- a/.drone.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -kind: pipeline -type: docker -name: default - -steps: - - name: build - image: node:16.18-bullseye - commands: - - apt-get update - - apt-get install -y jq zip - - npm ci - - npm run test - - ./scripts/build-and-package.sh legacy - - ./scripts/build-and-package.sh extension - - ./scripts/build-and-package.sh modern - - - name: upload artifact - image: node:16.18-bullseye - environment: - DRONE_GITEA_SERVER: https://git.unlock-music.dev - GITEA_API_KEY: - from_secret: GITEA_API_KEY - commands: - - ./scripts/upload-packages.sh diff --git a/.gitlab/ISSUE_TEMPLATE/bug-report.md b/.gitea/ISSUE_TEMPLATE/bug-report.md similarity index 56% rename from .gitlab/ISSUE_TEMPLATE/bug-report.md rename to .gitea/ISSUE_TEMPLATE/bug-report.md index 520e534..5483db5 100644 --- a/.gitlab/ISSUE_TEMPLATE/bug-report.md +++ b/.gitea/ISSUE_TEMPLATE/bug-report.md @@ -1,40 +1,45 @@ ---- - -name: "错误报告" -about: "报告 Bug 以帮助改进程序,非填表。" -title: "[BUG] " -labels: - -- bug - ---- - -* 请按照此模板填写,否则可能立即被关闭 - -- [x] 我确认已经搜索过Issue不存并确认相同的Issue -- [x] 我有证据表明这是程序导致的问题(如不确认,可以通过 Telegram 讨论组 (https://t.me/unlock_music_chat) 进行讨论) - -## Bug描述 - -简要地复述你遇到的Bug - -## 复现方法 - -描述复现方法,必要时请提供样本文件 - -## 程序截图或浏览器开发者控制台(Console)的报错信息 - -如果可以请提供二者之一 - -## 环境信息 - - - 操作系统和浏览器: - - 程序版本: - - 网页版的地址(如果为非官方部署请注明): - -注意:如果需要会员才能获取该资源,你可能也需要作为附件提交。 - -## 附加信息 - -如果有,请提供其他能够帮助确认问题的信息到下方: - +--- + +name: "错误报告" +about: "报告 Bug 以帮助改进程序,非填表。" +title: "[BUG] " +labels: + +- bug + +--- + +* 请按照此模板填写,否则可能立即被关闭。请将符合条件的 `[ ]` 更改为 `[x]`。 + +- [ ] 我确认已经搜索过 issue,确认没有已报告的相同 issue +- [ ] 我有证据表明这是程序导致的问题(如不确认,可以通过 Telegram 讨论组 (https://t.me/unlock_music_chat) 进行讨论) + +## Bug描述 + +简要地复述你遇到的 Bug: + +…… + +## 复现方法 + +描述复现方法,必要时请提供样本文件: + +…… + +## 程序截图或浏览器开发者控制台(Console)的报错信息 + +…… + +## 环境信息 + + - 操作系统和浏览器: + - 程序版本: + - 网页版的地址(如果为非官方部署请注明): + +注意:如果需要会员才能获取该资源,你可能也需要作为附件提交。 + +## 附加信息 + +如果有其他能够帮助确认问题的信息,请在下方填写: + +…… diff --git a/.gitlab/ISSUE_TEMPLATE/new-feature.md b/.gitea/ISSUE_TEMPLATE/new-feature.md similarity index 54% rename from .gitlab/ISSUE_TEMPLATE/new-feature.md rename to .gitea/ISSUE_TEMPLATE/new-feature.md index c7610d4..4c35159 100644 --- a/.gitlab/ISSUE_TEMPLATE/new-feature.md +++ b/.gitea/ISSUE_TEMPLATE/new-feature.md @@ -1,29 +1,28 @@ ---- - -name: "新功能" -about: "对于程序新的想法或建议" -title: "[新功能] " -labels: - -- enhancement - ---- - - - - -## 背景和说明 - - - - -## 实现途径 - -- 如果没有设计方案,请简要描述实现思路 -- 如果你没有任何的实现思路,请通过 Telegram 讨论组 (https://t.me/unlock_music_chat) 进行讨论 - - -## 附加信息 - - - +--- + +name: "新功能" +about: "对于程序新的想法或建议" +title: "[新功能] " +labels: + +- enhancement + +--- + + + + +## 背景和说明 + + + +## 附加信息 + + + +## 额外选项 + + + +- [ ] 我可以自行实现并提交 PR。 +- [ ] 我确认已经搜索过 issue,确认没有已报告的相同 issue diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 44670b2..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,47 +0,0 @@ -image: node:16 -cache: - paths: - - node_modules/ - -stages: - - build - - -build-job: - stage: build - script: | - sed -i 's/deb.debian.org/mirrors.cloud.tencent.com/g' /etc/apt/sources.list - apt-get update - apt-get -y install zip - - npm config set registry http://mirrors.cloud.tencent.com/npm/ - npm ci - - npm run build - tar -czf legacy.tar.gz -C ./dist . - cd dist - zip -rJ9 ../legacy.zip * - cd .. - - npm run make-extension - cd dist - zip -rJ9 ../extension.zip * - cd .. - - npm run build -- --modern - tar -czf modern.tar.gz -C ./dist . - cd dist - zip -rJ9 ../modern.zip * - cd .. - - sha256sum *.tar.gz *.zip > sha256sum.txt - - artifacts: - name: "$CI_JOB_NAME" - paths: - - legacy.zip - - legacy.tar.gz - - extension.zip - - modern.zip - - modern.tar.gz - - sha256sum.txt diff --git a/.gitlab/ISSUE_TEMPLATE/bug-crypto-guided.yaml b/.gitlab/ISSUE_TEMPLATE/bug-crypto-guided.yaml deleted file mode 100644 index 233ba24..0000000 --- a/.gitlab/ISSUE_TEMPLATE/bug-crypto-guided.yaml +++ /dev/null @@ -1,76 +0,0 @@ -name: 解码错误报告 (填表) -about: 遇到文件解码失败的问题请选择该项。 -title: '[Bug/Crypto] ' -labels: - - bug - - crypto -body: - - type: textarea - id: what-happened - attributes: - label: 错误描述 - description: 请描述你所遇到的问题,以及你期待的行为。 - placeholder: '' - value: '' - validations: - required: true - - type: dropdown - id: version - attributes: - label: Unlock Music 版本 - description: | - 能够重现错误的版本,版本号通常在页面底部。 - 如果不确定,请升级到最新版确认问题是否解决。 - multiple: true - options: - - 1.10.5 (仓库最新) - - 1.10.3 (官方 DEMO) - - 其它(请在错误描述中指定) - validations: - required: true - - type: dropdown - id: browsers - attributes: - label: 产生错误的浏览器 - multiple: true - options: - - 火狐 / Firefox - - Chrome - - Safari - - 其它基于 Chromium 的浏览器 (Edge、Brave、Opera 等) - - type: dropdown - id: music-platform - attributes: - label: 音乐平台 - description: | - 如果需要报告多个平台的问题,请每个平台提交一个新的 Issue。 - 请注意:播放器缓存文件不属于该项目支持的文件类型。 - multiple: false - options: - - 其它 (请在错误描述指定) - - QQ 音乐 - - Joox (QQ 音乐海外版) - - 虾米音乐 - - 网易云音乐 - - 酷我音乐 - - 酷狗音乐 - - 喜马拉雅 - - 咪咕 3D - validations: - required: true - - type: textarea - id: logs - attributes: - label: 日志信息 - description: 如果有,请提供浏览器开发者控制台(Console)的错误日志: - render: text - - type: checkboxes - id: terms - attributes: - label: 我已经阅读并确认下述内容 - description: '' - options: - - label: 我已经检索过 Issue 列表,并确认这是一个为报告过的问题。 - required: true - - label: 我有证据表明这是程序导致的问题(如不确认,可以通过 Telegram 讨论组 (https://t.me/unlock_music_chat) 进行讨论) - required: true diff --git a/scripts/upload-packages.sh b/scripts/upload-packages.sh deleted file mode 100755 index 06c3d43..0000000 --- a/scripts/upload-packages.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -set -ex - -cd "$(git rev-parse --show-toplevel)" - -if [ -z "$GITEA_API_KEY" ]; then - echo "GITEA_API_KEY is empty, skip upload." - exit 0 -fi - -URL_BASE="$DRONE_GITEA_SERVER/api/packages/${DRONE_REPO_NAMESPACE}/generic/${DRONE_REPO_NAME}-build" - -for ZIP_NAME in *.zip; do - UPLOAD_URL="${URL_BASE}/${DRONE_BUILD_NUMBER}/${ZIP_NAME}" - sha256sum "${ZIP_NAME}" - curl -sLifu "um-release-bot:$GITEA_API_KEY" -T "${ZIP_NAME}" "${UPLOAD_URL}" - echo "Uploaded to: ${UPLOAD_URL}" -done