mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
merge: retain master release and skin startup fixes
This commit is contained in:
commit
360126b14f
4 files changed
+27
-13
No files matched your search
@@ -9,7 +9,7 @@ on:
|
||||
version:
|
||||
description: Release version without the v prefix
|
||||
required: true
|
||||
default: 0.2.8
|
||||
default: 0.2.9
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
@@ -299,15 +299,29 @@ jobs:
|
||||
cd release-assets
|
||||
sha256sum * > SHA256SUMS.txt
|
||||
- name: Publish GitHub release
|
||||
env:
|
||||
RELEASE_REF: ${{ github.ref_name }}
|
||||
run: |
|
||||
node --input-type=module <<'NODE'
|
||||
import { readFileSync, writeFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
const tag = process.env.RELEASE_REF;
|
||||
const languages = [['简体中文', 'zh-CN'], ['English', 'en'], ['Deutsch', 'de'], ['Русский', 'ru'], ['日本語', 'ja']];
|
||||
const sections = languages.map(([label, locale]) => {
|
||||
const source = readFileSync(`docs/README.${locale}.md`, 'utf8');
|
||||
const start = source.indexOf(`### [${tag}](`);
|
||||
if (start < 0) throw new Error(`Missing ${tag} release notes for ${locale}`);
|
||||
const remaining = source.slice(start);
|
||||
const next = remaining.indexOf('\n### [v', 1);
|
||||
const notes = (next < 0 ? remaining : remaining.slice(0, next)).trim();
|
||||
return `## ${label}\n\n${notes}\n\n[Project documentation](https://github.com/${process.env.GITHUB_REPOSITORY}/blob/${tag}/docs/README.${locale}.md)`;
|
||||
});
|
||||
writeFileSync(join(process.env.RUNNER_TEMP, 'webspeak-release-notes.md'), sections.join('\n\n---\n\n') + '\n');
|
||||
NODE
|
||||
- name: Upload GitHub release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
name: WebSpeak ${{ github.ref_name }}
|
||||
body: |
|
||||
Release notes are maintained in each language's project documentation:
|
||||
- [简体中文](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/blob/master/docs/README.zh-CN.md#latest-release-notes)
|
||||
- [English](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/blob/master/docs/README.en.md#latest-release-notes)
|
||||
- [Deutsch](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/blob/master/docs/README.de.md#latest-release-notes)
|
||||
- [Русский](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/blob/master/docs/README.ru.md#latest-release-notes)
|
||||
- [日本語](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/blob/master/docs/README.ja.md#latest-release-notes)
|
||||
body_path: ${{ runner.temp }}/webspeak-release-notes.md
|
||||
files: release-assets/*
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "webspeak-webclient",
|
||||
"version": "0.2.8",
|
||||
"version": "0.2.9",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "webspeak-webclient",
|
||||
"version": "0.2.8",
|
||||
"version": "0.2.9",
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@discordjs/opus": "^0.10.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "webspeak-webclient",
|
||||
"version": "0.2.8",
|
||||
"version": "0.2.9",
|
||||
"private": true,
|
||||
"license": "AGPL-3.0-only",
|
||||
"type": "module",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
def appVersion = project.hasProperty('appVersion') ? project.property('appVersion').toString() : '0.2.6'
|
||||
def appVersionCode = project.hasProperty('appVersionCode') ? project.property('appVersionCode').toString().toInteger() : 206
|
||||
def appVersion = project.hasProperty('appVersion') ? project.property('appVersion').toString() : '0.2.9'
|
||||
def appVersionCode = project.hasProperty('appVersionCode') ? project.property('appVersionCode').toString().toInteger() : 209
|
||||
|
||||
android {
|
||||
namespace = "io.webspeak.client"
|
||||
|
||||
Reference in new issue
Block a user