Skip to content

Commit

Permalink
Fix linux build error
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlifeng committed Dec 4, 2023
1 parent 49593b7 commit 16f4ce7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Wox/util/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit 16f4ce7

Please sign in to comment.