Fix: Publish CI (#71)

* fix: try to fix desktop app publish

* chore: update beta-build workflow for Ubuntu by removing redundant protobuf installation and adding libxdo-dev

* fix: ensure data directory creation is conditional to avoid errors

- Updated setup.ts to check for the existence of the "./src/data" directory before attempting to create it, preventing potential errors during execution.

* fix: lint error
This commit is contained in:
Huakun Shen 2025-01-20 05:48:09 -05:00 committed by GitHub
parent b115e0a574
commit 5250a25283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 14 additions and 14 deletions

View File

@ -172,10 +172,6 @@ jobs:
if: startsWith(matrix.os, 'macos') if: startsWith(matrix.os, 'macos')
run: | run: |
brew install protobuf brew install protobuf
- name: Install and Protobuf (Ubuntu)
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt install -y protobuf-compiler
- name: Install protoc and openssl for windows - name: Install protoc and openssl for windows
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
run: | run: |
@ -188,7 +184,7 @@ jobs:
if: matrix.os == 'ubuntu-22.04' if: matrix.os == 'ubuntu-22.04'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libxdo-dev protobuf-compiler
- name: Install Rust - name: Install Rust
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable

12
Cargo.lock generated
View File

@ -3862,9 +3862,9 @@ dependencies = [
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.161" version = "0.2.169"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
[[package]] [[package]]
name = "libdbus-sys" name = "libdbus-sys"
@ -4336,9 +4336,9 @@ dependencies = [
[[package]] [[package]]
name = "neli" name = "neli"
version = "0.6.4" version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1100229e06604150b3becd61a4965d5c70f3be1759544ea7274166f4be41ef43" checksum = "93062a0dce6da2517ea35f301dfc88184ce18d3601ec786a727a87bf535deca9"
dependencies = [ dependencies = [
"byteorder", "byteorder",
"libc", "libc",
@ -4348,9 +4348,9 @@ dependencies = [
[[package]] [[package]]
name = "neli-proc-macros" name = "neli-proc-macros"
version = "0.1.3" version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c168194d373b1e134786274020dae7fc5513d565ea2ebb9bc9ff17ffb69106d4" checksum = "0c8034b7fbb6f9455b2a96c19e6edf8dc9fc34c70449938d8ee3b4df363f61fe"
dependencies = [ dependencies = [
"either", "either",
"proc-macro2", "proc-macro2",

View File

@ -57,7 +57,7 @@
"settings_extensions_table_col_uninstall": "Uninstall", "settings_extensions_table_col_uninstall": "Uninstall",
"settings_add_dev_ext_title": "Add Dev Extension", "settings_add_dev_ext_title": "Add Dev Extension",
"settings_add_dev_ext_description": "There are 4 options to install an extension in developer mode. Either load it from your local tarball file, a tarball remote URL, npm package name or load from a remote URL.", "settings_add_dev_ext_description": "There are 4 options to install an extension in developer mode. Either load it from your local tarball file, local folder, a tarball remote URL, or npm package name.",
"settings_add_dev_ext_install_from_ext_folders": "Install from Extension Folders", "settings_add_dev_ext_install_from_ext_folders": "Install from Extension Folders",
"settings_add_dev_ext_install_from_ext_files": "Install from Extension Tarball File", "settings_add_dev_ext_install_from_ext_files": "Install from Extension Tarball File",
"settings_add_dev_ext_drag_and_drop": "Drag and Drop", "settings_add_dev_ext_drag_and_drop": "Drag and Drop",

View File

@ -1,13 +1,15 @@
import assert from "assert" import assert from "assert"
import fs from "fs"
import { compressString, decompressString } from "@kksh/utils" import { compressString, decompressString } from "@kksh/utils"
import { $ } from "bun"
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* Download Dance JSON */ /* Download Dance JSON */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
console.log("Downloading Dance Data...") console.log("Downloading Dance Data...")
const rawData = await fetch("https://dance.kunkun.sh/api/data").then((res) => res.text()) const rawData = await fetch("https://dance.kunkun.sh/api/data").then((res) => res.text())
if (!fs.existsSync("./src/data")) {
fs.mkdirSync("./src/data", { recursive: true })
}
function formatFileSize(size: number) { function formatFileSize(size: number) {
return `${(size / 1024).toFixed(2)} KB` return `${(size / 1024).toFixed(2)} KB`
} }

View File

@ -1,3 +1,4 @@
## Permission Table ## Permission Table
<table> <table>
@ -6,6 +7,7 @@
<th>Description</th> <th>Description</th>
</tr> </tr>
<tr> <tr>
<td> <td>