From 16f4ce7be215ad83f7d42f91d5acc202e6fcd9bf Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Mon, 4 Dec 2023 23:21:04 +0800 Subject: [PATCH] Fix linux build error --- Wox/util/location.go | 3 +++ justfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Wox/util/location.go b/Wox/util/location.go index ae2f8dfef..94f37a418 100644 --- a/Wox/util/location.go +++ b/Wox/util/location.go @@ -177,6 +177,9 @@ func (l *Location) GetUIAppPath() string { if IsWindows() { return path.Join(l.GetUIDirectory(), "flutter", "wox", "wox.exe") } + if IsLinux() { + return path.Join(l.GetUIDirectory(), "flutter", "wox", "wox") + } if IsMacOS() { return path.Join(l.GetUIDirectory(), "flutter", "wox.app", "Contents", "MacOS", "wox") } diff --git a/justfile b/justfile index 6c2c82767..298e1f838 100644 --- a/justfile +++ b/justfile @@ -104,7 +104,7 @@ default: if [ "{{current_flutter_target}}" = "windows" ]; then \ cp -r Wox.UI.Flutter/wox/build/{{current_flutter_target}}/x64/runner/Release Wox/resource/ui/flutter/wox; \ elif [ "{{current_flutter_target}}" = "linux" ]; then \ - cp -r Wox.UI.Flutter/wox/build/{{current_flutter_target}}/Build/Products/Release/wox Wox/resource/ui/flutter; \ + cp -r Wox.UI.Flutter/wox/build/{{current_flutter_target}}/x64/release/bundle Wox/resource/ui/flutter/wox; \ elif [ "{{current_flutter_target}}" = "macos" ]; then \ cp -r Wox.UI.Flutter/wox/build/{{current_flutter_target}}/Build/Products/Release/wox.app Wox/resource/ui/flutter; \ chmod +x Wox/resource/ui/flutter/wox.app/Contents/MacOS/wox; \