Initial import: Music_Server, MusicFree, catalog-sync
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
---
|
||||
name: 反馈问题
|
||||
description: 问题反馈模板
|
||||
labels: ["bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: "## 不要在此仓库提和具体插件有关的问题!!!"
|
||||
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: 提问题之前,请先确认
|
||||
description: "请勾选以下确认项"
|
||||
options:
|
||||
- label: "已经阅读过Q&A (https://musicfree.catcat.work/qa/mobile.html)"
|
||||
required: true
|
||||
- label: "要提出的问题与插件功能无关(类似某个插件搜索结果不全、ip被封禁等请找对应插件作者,在此仓库下提具体插件的问题将会被直接关闭)"
|
||||
required: true
|
||||
- label: "不与其他已有issue重复"
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: system_info
|
||||
attributes:
|
||||
label: 系统信息
|
||||
description: "请填写以下系统信息"
|
||||
placeholder: |
|
||||
软件版本:
|
||||
系统版本:
|
||||
设备型号:
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: problem_description
|
||||
attributes:
|
||||
label: 问题描述
|
||||
description: "请详细描述问题现象及预期正确行为"
|
||||
placeholder: "例如:当执行XX操作时,出现XX现象,预期应该XX..."
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: reproduction_steps
|
||||
attributes:
|
||||
label: 复现步骤
|
||||
description: "请按顺序描述复现步骤"
|
||||
placeholder: |
|
||||
1. 打开应用
|
||||
2. 点击XX按钮
|
||||
3. ...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: screenshots_logs
|
||||
attributes:
|
||||
label: 截图 & 日志
|
||||
description: "请粘贴截图链接或错误日志(可拖放文件直接上传截图)"
|
||||
placeholder: "错误日志示例:\n[2023-01-01 12:00] ERROR: xxxx"
|
||||
validations:
|
||||
required: false
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: 讨论区
|
||||
url: https://github.com/maotoumao/MusicFree/discussions
|
||||
about: 在这里讨论或寻求帮助
|
||||
@@ -0,0 +1,40 @@
|
||||
---
|
||||
name: 提交新需求
|
||||
description: 新功能需求模板
|
||||
labels: ["feature"]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: 提需求之前,请先确认
|
||||
description: "请检查以下确认项"
|
||||
options:
|
||||
- label: "已经阅读过Q&A (https://musicfree.catcat.work/qa/mobile.html)"
|
||||
required: true
|
||||
- label: "新需求不是仅仅满足个人口味的需求"
|
||||
required: true
|
||||
- label: "新需求不与其他已有issue重复"
|
||||
required: true
|
||||
- label: "我可以在代码、测试上提供帮助"
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: feature_description
|
||||
attributes:
|
||||
label: 需求描述
|
||||
description: "请详细说明需求背景、使用场景和预期效果"
|
||||
placeholder: |
|
||||
例如:
|
||||
- 当前存在的痛点是什么?
|
||||
- 希望如何解决这个问题?
|
||||
- 预期的使用体验是怎样的?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: attachments
|
||||
attributes:
|
||||
label: 附件信息(可选)
|
||||
description: "可拖放上传示意图/设计稿"
|
||||
placeholder: "设计稿说明或云文档链接..."
|
||||
validations:
|
||||
required: false
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
name: Beta 构建
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [dev]
|
||||
paths: ['package.json']
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
force_build:
|
||||
description: '强制构建 Beta 版本'
|
||||
required: false
|
||||
default: 'false'
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
check-version:
|
||||
if: github.actor == 'maotoumao' || github.event_name == 'push'
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
should_build: ${{ steps.version_check.outputs.should_build }}
|
||||
version: ${{ steps.version_check.outputs.version }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check version format
|
||||
id: version_check
|
||||
run: |
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
echo "Current version: $VERSION"
|
||||
|
||||
# 检查版本是否符合 -beta.xx 格式
|
||||
if [[ $VERSION =~ -beta\.[0-9]{1,2}$ ]]; then
|
||||
echo "✅ Version matches beta format: $VERSION"
|
||||
echo "should_build=true" >> $GITHUB_OUTPUT
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
elif [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ inputs.force_build }}" == "true" ]]; then
|
||||
echo "🔧 Force build triggered by workflow_dispatch"
|
||||
echo "should_build=true" >> $GITHUB_OUTPUT
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "❌ Version does not match beta format or not forced: $VERSION"
|
||||
echo "should_build=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
build-beta:
|
||||
needs: check-version
|
||||
if: needs.check-version.outputs.should_build == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
|
||||
- name: Cache React Native dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
android/.gradle
|
||||
key: ${{ runner.os }}-rn-${{ hashFiles('package-lock.json', 'android/gradle/wrapper/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-rn-
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm ci --prefer-offline --no-audit
|
||||
|
||||
- name: Setup Keystore (if secrets available)
|
||||
if: ${{ secrets.RELEASE_KEYSTORE_BASE64 != '' }}
|
||||
run: |
|
||||
echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 -d > android/app/release.keystore
|
||||
cat > android/keystore.properties << 'EOF'
|
||||
RELEASE_STORE_FILE=release.keystore
|
||||
RELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }}
|
||||
RELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }}
|
||||
RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}
|
||||
EOF
|
||||
chmod 600 android/keystore.properties android/app/release.keystore
|
||||
|
||||
- name: Make gradlew executable
|
||||
run: chmod +x android/gradlew
|
||||
|
||||
- name: Build Beta APK
|
||||
run: |
|
||||
cd android
|
||||
./gradlew assembleRelease --parallel --build-cache --configure-on-demand
|
||||
|
||||
- name: List generated APKs
|
||||
run: |
|
||||
echo "📱 Generated APK files:"
|
||||
find android/app/build/outputs/apk/release -name "*.apk" -exec ls -lh {} \;
|
||||
|
||||
- name: Upload Beta APKs
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: beta-apks-${{ needs.check-version.outputs.version }}
|
||||
path: android/app/build/outputs/apk/release/*.apk
|
||||
retention-days: 30
|
||||
|
||||
- name: Build Summary
|
||||
run: |
|
||||
echo "🎉 Beta build completed successfully!"
|
||||
echo "📦 Version: ${{ needs.check-version.outputs.version }}"
|
||||
echo "🚀 Triggered by: ${{ github.event_name }}"
|
||||
echo "👤 Actor: ${{ github.actor }}"
|
||||
Reference in New Issue
Block a user