mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2024-11-09 09:41:17 +08:00
Scrcpy Mask v0.1.1
This commit is contained in:
parent
7090c64562
commit
991b02bc57
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -60,8 +60,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tagName: "app-${{ github.ref_name }}"
|
releaseName: "Scrcpy Mask v__VERSION__"
|
||||||
releaseName: "Scrcpy Mask ${{ github.ref_name }}"
|
|
||||||
releaseBody: "Add release notes here."
|
releaseBody: "Add release notes here."
|
||||||
releaseDraft: true
|
releaseDraft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "scrcpy-mask",
|
"name": "scrcpy-mask",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
36
publish.js
36
publish.js
@ -14,23 +14,45 @@ process.stdin.on("data", function (data) {
|
|||||||
process.stdin.pause();
|
process.stdin.pause();
|
||||||
console.log("publishing version: " + version);
|
console.log("publishing version: " + version);
|
||||||
|
|
||||||
|
console.log("update tauri.conf.json version");
|
||||||
|
const tauri_path = "./src-tauri/tauri.conf.json";
|
||||||
|
const tauri_lines = readFileSync(tauri_path, "utf8").split(
|
||||||
|
"\n"
|
||||||
|
);
|
||||||
|
for (let i = 0; i < tauri_lines.length; i++) {
|
||||||
|
if (tauri_lines[i].includes("version")) {
|
||||||
|
tauri_lines[i] = ` "version": "${version}",`;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
writeFileSync(tauri_path, tauri_lines.join("\n"));
|
||||||
|
|
||||||
console.log("update package.json version");
|
console.log("update package.json version");
|
||||||
console.log(
|
console.log(
|
||||||
execSync("pnpm version --no-git-tag-version " + version).toString()
|
execSync("pnpm version --no-git-tag-version " + version).toString()
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("update cargo.toml version\n");
|
console.log("update cargo.toml version\n");
|
||||||
const lines = readFileSync("./src-tauri/Cargo.toml", "utf8").split("\n");
|
const cargo_path = "./src-tauri/Cargo.toml";
|
||||||
for (let i = 0; i < lines.length; i++) {
|
const cargo_lines = readFileSync(cargo_path, "utf8").split(
|
||||||
if (lines[i].startsWith("version")) {
|
"\n"
|
||||||
lines[i] = `version = "${version}"`;
|
);
|
||||||
|
for (let i = 0; i < cargo_lines.length; i++) {
|
||||||
|
if (cargo_lines[i].startsWith("version")) {
|
||||||
|
cargo_lines[i] = `version = "${version}"`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
writeFileSync("./src-tauri/Cargo.toml", lines.join("\n"));
|
writeFileSync(cargo_path, cargo_lines.join("\n"));
|
||||||
|
|
||||||
console.log("git commit and tag");
|
console.log("git commit and tag");
|
||||||
console.log(execSync(`git add . && git commit -m "Scrcpy Mask v${version}" && git tag v${version}`).toString());
|
console.log(
|
||||||
|
execSync(
|
||||||
|
`git add . && git commit -m "Scrcpy Mask v${version}" && git tag v${version}`
|
||||||
|
).toString()
|
||||||
|
);
|
||||||
|
|
||||||
console.log("Pleash push commit and tag to github manually:\ngit push && git push --tags");
|
console.log(
|
||||||
|
"Pleash push commit and tag to github manually:\ngit push && git push --tags"
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "scrcpy-mask"
|
name = "scrcpy-mask"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
description = "A Tauri App"
|
description = "A Tauri App"
|
||||||
authors = ["AkiChase"]
|
authors = ["AkiChase"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"productName": "scrcpy-mask",
|
"productName": "scrcpy-mask",
|
||||||
"version": "0.0.0",
|
"version": "0.1.1",
|
||||||
"identifier": "com.akichase.mask",
|
"identifier": "com.akichase.mask",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "pnpm dev",
|
"beforeDevCommand": "pnpm dev",
|
||||||
|
Loading…
Reference in New Issue
Block a user