Skip to content

Commit 579a549

Browse files
committed
build desktop app
1 parent 670fc09 commit 579a549

File tree

7 files changed

+42
-4
lines changed

7 files changed

+42
-4
lines changed

.github/workflows/dockerize-on-release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: 'dockerize-on-release'
33
on:
44
release:
55
types: [published]
6-
branches: ['main']
76

87
jobs:
98
build:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ coverage
1414
# misc
1515
.DS_Store
1616
*.pem
17+
*.bat
1718

1819
# debug
1920
npm-debug.log*
2021
yarn-debug.log*
2122
yarn-error.log*
2223

2324
# local env files
25+
.env
2426
.env.local
2527
.env.development.local
2628
.env.test.local

apps/desktop/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ node_modules
88
!.env.example
99
vite.config.js.timestamp-*
1010
vite.config.ts.timestamp-*
11+
*.bat

apps/desktop/src-tauri/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ mod commands;
88
fn main() {
99
let mut ctx = tauri::generate_context!();
1010
tauri::Builder::default()
11-
.setup(|app| {
11+
.setup(|_app| {
1212
if cfg!(target_os = "macos") {
1313
#[cfg(target_os = "macos")]
1414
use mac::window::setup_mac_window;
1515

1616
#[cfg(target_os = "macos")]
17-
setup_mac_window(app);
17+
setup_mac_window(_app);
1818
}
1919

2020
Ok(())

apps/desktop/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"windows": {
6464
"installMode": "passive"
6565
},
66-
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDMxQjA0RjhDQjBFN0I4MTkKUldRWnVPZXdqRSt3TWN0QjNDZUV1SDRtNVdyNFRtWnZQR3ZsL3RWY1plbVBFeFVMeHFLVU5tcnIK"
66+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEUxMkJEQUIwRURBQzU3N0IKUldSN1Y2enRzTm9yNFlvZUNmd0hYTVlSb2hadmNCb0VZc0Y0STV5bTdKMEliOTZhaDYzeEszZFYK"
6767
},
6868
"windows": [
6969
{

apps/desktop/src/svelte.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
declare module '@haptic/ui/components/*' {
2+
import type { SvelteComponent, SvelteComponentTyped } from 'svelte';
3+
4+
// For default exports (individual components)
5+
const component: typeof SvelteComponent;
6+
export default component;
7+
8+
// For named exports (component collections)
9+
export interface ATypedSvelteComponent extends SvelteComponentTyped<any, any, any> {}
10+
export interface ConstructorOfATypedSvelteComponent {
11+
new (args: { target: any; props?: any; }): ATypedSvelteComponent;
12+
}
13+
}
14+
15+
declare module '@haptic/ui/lib/*' {
16+
const value: any;
17+
export default value;
18+
}

tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
// Remove or comment out the extends line
3+
// "extends": "./.svelte-kit/tsconfig.json",
4+
"compilerOptions": {
5+
"target": "ESNext",
6+
"useDefineForClassFields": true,
7+
"module": "ESNext",
8+
"moduleResolution": "bundler",
9+
"resolveJsonModule": true,
10+
"allowJs": true,
11+
"checkJs": true,
12+
"isolatedModules": true,
13+
"strict": true,
14+
// Add other compiler options as needed
15+
},
16+
"include": ["apps/**/*.d.ts", "apps/**/*.ts", "apps/**/*.js", "apps/**/*.svelte", "packages/**/*.d.ts", "packages/**/*.ts", "packages/**/*.js", "packages/**/*.svelte"],
17+
"exclude": ["**/*.config.js", "**/*.config.cjs", "**/svelte.config.js", "**/postcss.config.js", "**/tailwind.config.js", "**/eslint.config.js", "packages/config-*/index.js", "**/build/**", "**/.svelte-kit/**"]
18+
}

0 commit comments

Comments
 (0)