1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-09 15:18:15 +08:00

Compare commits

...

8 Commits

Author SHA1 Message Date
涵曦
00733ad669 ci: 调试 2024-12-19 16:47:04 +08:00
Issues Docs [BOT]
4cdfd68c4d Auto-Generate docs 🤖 2024-12-19 08:42:06 +00:00
涵曦
2b28bf8551 ci: 打包修改 2024-12-19 16:38:25 +08:00
涵曦
1023caf80a bump: version 0.3.59 → 0.3.60 2024-12-19 13:33:03 +08:00
涵曦
fba021d8fb build: update static version 2024-12-19 13:33:02 +08:00
涵曦
8bac3ee961 Update ci.yml 2024-12-19 13:22:23 +08:00
Issues Docs [BOT]
2f18e1935e Auto-Generate docs 🤖 2024-12-19 05:16:30 +00:00
涵曦
6c208eb1ce Update static.yml 2024-12-19 13:14:44 +08:00
12 changed files with 81 additions and 25 deletions

View File

@@ -23,7 +23,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
@@ -189,8 +191,29 @@ jobs:
sudo apt install -y gh
# 创建或更新 Release
- name: Create or update Release
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
- name: Create or update Release main
if: github.ref == 'refs/heads/main'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 设置 GH_TOKEN 环境变量
run: |
RELEASE_NAME=test
RELEASE_BODY="This release is automatically updated from the main branch."
# 检查是否已有同名 Release
EXISTING_RELEASE=$(gh release view "${RELEASE_NAME}" --json id --jq .id || echo "")
if [[ -n "${EXISTING_RELEASE}" ]]; then
echo "release exist"
else
# 创建新的 Release
gh release create "${RELEASE_NAME}" \
--prerelease=false \
--title "${RELEASE_NAME}" \
--notes "${RELEASE_BODY}"
fi
- name: Create or update Release tag
if: startsWith(github.ref, 'refs/tags/v')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 设置 GH_TOKEN 环境变量
run: |
@@ -210,9 +233,23 @@ jobs:
--notes "${RELEASE_BODY}"
fi
# 上传多个文件并覆盖
- name: Upload assets to Release
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
- name: Upload assets to Release main
if: github.ref == 'refs/heads/main'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 设置 GH_TOKEN 环境变量
run: |
RELEASE_NAME=test
FILES=$(find . -type f -name "app-*.tar.gz")
for FILE in ${FILES}; do
echo "type upload ${FILE}"
gh release upload "${RELEASE_NAME}" "${FILE}" --clobber
done
- name: Upload assets to Release tag
if: startsWith(github.ref, 'refs/tags/v')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 设置 GH_TOKEN 环境变量
run: |
@@ -223,4 +260,3 @@ jobs:
echo "type upload ${FILE}"
gh release upload "${RELEASE_NAME}" "${FILE}" --clobber
done

View File

@@ -8,7 +8,7 @@ on:
paths:
- 'docs/**'
- 'README.md'
- 'CHANGELOG..md'
- 'CHANGELOG.md'
- '.github/workflows/static.yml'
# Runs on issue events
issues:

View File

@@ -1,3 +1,5 @@
## v0.3.60 (2024-12-19)
## v0.3.59 (2024-12-19)
### Feat

View File

@@ -1,5 +1,27 @@
# 版本日志
## v0.3.60 (2024-12-19)
## v0.3.59 (2024-12-19)
### Feat
- 新增更多的歌单编辑相关接口
- 一键更新功能
- 接入 sentry 平台
- 实现更新接口
- 下载完成之后修改文件权限为755 close #316
### Fix
- 解决飞牛平台报错问题
### Refactor
- 优化代码日志级别
- 更新等消息推送到客户端再重启
- 更新接口修改
## v0.3.58 (2024-12-15)
### Fix

View File

@@ -1,6 +1,6 @@
[project]
name = "xiaomusic"
version = "0.3.59"
version = "0.3.60"
description = "Play Music with xiaomi AI speaker"
authors = [
{name = "涵曦", email = "im.hanxi@gmail.com"},

View File

@@ -1 +1 @@
__version__ = "0.3.59"
__version__ = "0.3.60"

View File

@@ -6,9 +6,9 @@
<meta name="viewport" content="width=device-width">
<title>Debug For XiaoMusic</title>
<link rel="stylesheet" type="text/css" href="./main.css?version=1734568930">
<link rel="stylesheet" type="text/css" href="./main.css?version=1734586382">
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script src="./jquery-3.7.1.min.js?version=1734568930"></script>
<script src="./jquery-3.7.1.min.js?version=1734586382"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z09NC1K7ZW"></script>

View File

@@ -4,8 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>歌曲下载工具</title>
<link rel="stylesheet" type="text/css" href="./main.css?version=1734568930">
<script src="./jquery-3.7.1.min.js?version=1734568930"></script>
<link rel="stylesheet" type="text/css" href="./main.css?version=1734586382">
<script src="./jquery-3.7.1.min.js?version=1734586382"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z09NC1K7ZW"></script>

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>小爱音箱操控面板</title>
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
<script src="./jquery-3.7.1.min.js?version=1734568930"></script>
<link rel="stylesheet" href="./main.css?version=1734568930">
<script src="./jquery-3.7.1.min.js?version=1734586382"></script>
<link rel="stylesheet" href="./main.css?version=1734586382">
<link rel="icon" href="./favicon.ico">
<!-- Google tag (gtag.js) -->
@@ -220,7 +220,7 @@
Powered by XiaoMusic
</div>
<script src="./md.js?version=1734568930">
<script src="./md.js?version=1734586382">
</script>
</body>

View File

@@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width">
<title>M3U to JSON Converter</title>
<link rel="stylesheet" type="text/css" href="./main.css?version=1734568930">
<link rel="stylesheet" type="text/css" href="./main.css?version=1734586382">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z09NC1K7ZW"></script>

View File

@@ -660,11 +660,7 @@ $('#version').on('click', function() {
data.forEach((item) => {
const option = document.createElement("option");
option.value = item.version;
if (item.version=="main"){
option.textContent = "测试版";
} else {
option.textContent = item.version;
}
option.textContent = item.version;
versionSelect.appendChild(option);
});
});

View File

@@ -5,9 +5,9 @@
<meta name="viewport" content="width=device-width">
<title>小爱音箱操控面板</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="./jquery-3.7.1.min.js?version=1734568930"></script>
<script src="./setting.js?version=1734568930"></script>
<link rel="stylesheet" type="text/css" href="./main.css?version=1734568930">
<script src="./jquery-3.7.1.min.js?version=1734586382"></script>
<script src="./setting.js?version=1734586382"></script>
<link rel="stylesheet" type="text/css" href="./main.css?version=1734586382">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z09NC1K7ZW"></script>