fix sciter bundle
This commit is contained in:
parent
3e321327a4
commit
324447ffc8
2
.github/workflows/flutter-build.yml
vendored
2
.github/workflows/flutter-build.yml
vendored
@ -189,8 +189,6 @@ jobs:
|
|||||||
python3 res/inline-sciter.py
|
python3 res/inline-sciter.py
|
||||||
# Patch sciter x86
|
# Patch sciter x86
|
||||||
sed -i 's/branch = "dyn"/branch = "dyn_x86"/g' ./Cargo.toml
|
sed -i 's/branch = "dyn"/branch = "dyn_x86"/g' ./Cargo.toml
|
||||||
# Replace the link for the ico.
|
|
||||||
rm res/icon.ico && cp flutter/windows/runner/resources/app_icon.ico res/icon.ico
|
|
||||||
cargo build --features inline --release --bins
|
cargo build --features inline --release --bins
|
||||||
mkdir -p ./Release
|
mkdir -p ./Release
|
||||||
mv ./target/release/rustdesk.exe ./Release/rustdesk.exe
|
mv ./target/release/rustdesk.exe ./Release/rustdesk.exe
|
||||||
|
2
build.rs
2
build.rs
@ -25,7 +25,7 @@ fn build_manifest() {
|
|||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
if std::env::var("PROFILE").unwrap() == "release" {
|
if std::env::var("PROFILE").unwrap() == "release" {
|
||||||
let mut res = winres::WindowsResource::new();
|
let mut res = winres::WindowsResource::new();
|
||||||
res.set_icon("res/tray-icon.ico")
|
res.set_icon("res/icon.ico")
|
||||||
.set_language(winapi::um::winnt::MAKELANGID(
|
.set_language(winapi::um::winnt::MAKELANGID(
|
||||||
winapi::um::winnt::LANG_ENGLISH,
|
winapi::um::winnt::LANG_ENGLISH,
|
||||||
winapi::um::winnt::SUBLANG_ENGLISH_US,
|
winapi::um::winnt::SUBLANG_ENGLISH_US,
|
||||||
|
@ -61,6 +61,11 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
|
|||||||
let mut docker_hiden = false;
|
let mut docker_hiden = false;
|
||||||
|
|
||||||
let open_func = move || {
|
let open_func = move || {
|
||||||
|
#[cfg(not(feature = "flutter"))]
|
||||||
|
{
|
||||||
|
crate::run_me::<&str>(vec![]).ok();
|
||||||
|
return;
|
||||||
|
}
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
crate::platform::macos::handle_application_should_open_untitled_file();
|
crate::platform::macos::handle_application_should_open_untitled_file();
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user