mirror of
https://github.com/ow-mods/ow-mod-man.git
synced 2025-12-11 20:15:50 +01:00
Fix CI, remove updater remover
This commit is contained in:
parent
3316a65f0d
commit
04a26584d5
8
.github/workflows/nightly_build.yml
vendored
8
.github/workflows/nightly_build.yml
vendored
@ -81,10 +81,10 @@ jobs:
|
||||
- name: Install Tauri CLI
|
||||
run: npm add -g @tauri-apps/cli
|
||||
|
||||
- name: Disable Tauri Updater
|
||||
if: matrix.platform == 'ubuntu-22.04'
|
||||
run: |
|
||||
cargo xtask gui_disable_updater
|
||||
# - name: Disable Tauri Updater
|
||||
# if: matrix.platform == 'ubuntu-22.04'
|
||||
# run: |
|
||||
# cargo xtask gui_disable_updater
|
||||
|
||||
- name: Build GUI
|
||||
run: tauri build --ci -b ${{ matrix.args }}
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2.0.0",
|
||||
"build": {
|
||||
"beforeBuildCommand": "cd frontend && npm run build",
|
||||
"beforeDevCommand": "cd frontend && npm run dev",
|
||||
"beforeBuildCommand": "npm run build",
|
||||
"beforeDevCommand": "npm run dev",
|
||||
"devUrl": "http://localhost:1420",
|
||||
"frontendDist": "../dist"
|
||||
},
|
||||
|
||||
@ -12,14 +12,14 @@ pub fn disable_updater() -> Result<()> {
|
||||
// tauri.conf.json
|
||||
let tauri_conf = std::fs::read_to_string(GUI_TAURI_CONF_PATH)?;
|
||||
let mut tauri_conf: Value = from_str(&tauri_conf)?;
|
||||
tauri_conf["tauri"]["updater"]["active"] = false.into();
|
||||
tauri_conf["plugins"]["updater"]["active"] = false.into();
|
||||
// Cargo.toml
|
||||
let cargo_toml = std::fs::read_to_string(GUI_CARGO_TOML_PATH)?;
|
||||
let mut cargo_toml = cargo_toml.parse::<DocumentMut>()?;
|
||||
let features = cargo_toml["dependencies"]["tauri"]["features"]
|
||||
.as_array_mut()
|
||||
let features = cargo_toml["dependencies"]
|
||||
.as_table_mut()
|
||||
.unwrap();
|
||||
features.retain(|f| f.as_str().unwrap() != "updater");
|
||||
features.remove("tauri-plugin-updater");
|
||||
// Write to files
|
||||
std::fs::write(
|
||||
GUI_TAURI_CONF_PATH,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user