Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
btjawa committed Jan 6, 2024
1 parent afb9b56 commit 8f3583a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 15 deletions.
18 changes: 18 additions & 0 deletions UPDATE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Updater Log

## v1.0.2

包含逻辑/BUG更新,以及新功能
- 功能: 下载相关
- 支持设置"最大下载并发数"
- 音乐/AU号解析 & 最高无损SQ FLAC
- 文件命名支持空格/特殊字符
- 修复: 下载相关
- 修正Dolby/Hi-Res下载链接获取方式
- 优化多次下载同一视频的体验
- 杂项更新: 功能 & 修复
- 优化退出登录逻辑
- 修改“定位文件”定位方式
- 前端正确解包gzip
- 短信登录自动根据地区选择国家区号
- 大幅减小ffmpeg体积
- ffmpeg改为使用COPYING许可

## v1.0.0

更名为 "BiliTools", 全新图标
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bilitools",
"version": "1.0.0",
"version": "1.0.2",
"description": "bilibili工具箱,视频/番剧+伴音/音乐下载,三种登录方式,仅用作学习用途。",
"type": "module",
"scripts": {
Expand Down
26 changes: 14 additions & 12 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,24 @@ const require = createRequire(import.meta.url);

async function release() {
const flag = process.argv[2] ?? 'patch';
const increment = process.argv[3] ? parseInt(process.argv[3], 10) : 1; // 解析第三个参数或默认为 1
const packageJson = require('../package.json');
const tauriConfig = require('../src-tauri/tauri.conf.json');
let [a, b, c] = packageJson.version.split('.').map(Number);

if (flag === 'major') { // 主版本
a += 1;
b = 0;
c = 0;
} else if (flag === 'minor') { // 次版本
b += 1;
c = 0;
} else if (flag === 'patch') { // 补丁版本
c += 1;
} else {
console.log(`Invalid flag "${flag}"`);
process.exit(1);
switch (flag) {
case 'major':
a += increment; b = 0; c = 0;
break;
case 'minor':
b += increment; c = 0;
break;
case 'patch':
c += increment;
break;
default:
console.log(`Invalid flag "${flag}"`);
process.exit(1);
}

const nextVersion = `${a}.${b}.${c}`;
Expand Down
7 changes: 5 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "BiliTools",
"version": "1.0.0"
"version": "1.0.2"
},
"tauri": {
"allowlist": {
Expand Down Expand Up @@ -48,7 +48,10 @@
"language": "zh-CN"
},
"nsis": {
"languages": ["SimpChinese", "English"],
"languages": [
"SimpChinese",
"English"
],
"displayLanguageSelector": true
}
}
Expand Down

0 comments on commit 8f3583a

Please sign in to comment.