Skip to content

Commit

Permalink
Fix Linux build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Jul 4, 2023
1 parent 37e48c1 commit 6aaf455
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/windows-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
# Checkout with Playtime Clip Engine
- uses: actions/checkout@v2
- uses: webfactory/ssh-agent@v0.8.0
- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.PRIVATE_PLAYTIME_CLIP_ENGINE_DEPLOY_KEY }}
- name: Update submodules
Expand Down
10 changes: 10 additions & 0 deletions main/src/infrastructure/ui/app_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ const APP_BASE_DIR: &str = "/Users/helgoboss/Documents/projects/dev/playtime/bui
const APP_BASE_DIR: &str =
"C:\\Users\\benja\\Documents\\projects\\dev\\playtime\\build\\windows\\runner\\Release";

#[cfg(target_os = "linux")]
const APP_BASE_DIR: &str = "TODO";

impl LoadedApp {
pub fn load() -> Result<Self, libloading::Error> {
let app_base_dir = Path::new(APP_BASE_DIR);
Expand All @@ -89,6 +92,13 @@ impl LoadedApp {
],
)
}
#[cfg(target_os = "linux")]
{
(
"playtime.so",
["flutter_linux.so", "url_launcher_linux_plugin.so"],
)
}
};
let app = unsafe {
LoadedApp {
Expand Down

0 comments on commit 6aaf455

Please sign in to comment.