From e13517b71089488714d58c3c0a789eca0fde877b Mon Sep 17 00:00:00 2001 From: reya Date: Thu, 13 Feb 2025 16:10:51 +0700 Subject: [PATCH] chore: fix build --- .github/workflows/main.yml | 2 ++ crates/app/src/main.rs | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72a2c79..d71c21c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,6 +60,7 @@ jobs: with: command: release upload ${{ env.CN_APPLICATION }} --framework packager api-key: ${{ secrets.CN_API_KEY }} + working-directory: ./crates/app publish: needs: build @@ -74,3 +75,4 @@ jobs: with: command: release publish ${{ env.CN_APPLICATION }} --framework packager api-key: ${{ secrets.CN_API_KEY }} + working-directory: ./crates/app diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index a215d01..55b90e2 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -8,9 +8,11 @@ use common::{ profile::NostrProfile, }; use gpui::{ - actions, point, px, size, App, AppContext, Application, AsyncApp, Bounds, KeyBinding, Menu, - MenuItem, SharedString, TitlebarOptions, WindowBounds, WindowKind, WindowOptions, + actions, px, size, App, AppContext, Application, AsyncApp, Bounds, KeyBinding, Menu, MenuItem, + WindowBounds, WindowKind, WindowOptions, }; +#[cfg(not(target_os = "linux"))] +use gpui::{point, SharedString, TitlebarOptions}; #[cfg(target_os = "linux")] use gpui::{WindowBackgroundAppearance, WindowDecorations}; use log::{error, info};