Skip to content

Commit

Permalink
Revised open-with=app logic to fix bug | revised tsconfigs | revised …
Browse files Browse the repository at this point in the history
…package.json
  • Loading branch information
angelplusultra committed Dec 12, 2023
1 parent e7407cd commit e6f1f47
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "templix",
"version": "0.0.8",
"version": "0.0.9",
"description": "A project template management GUI for developers",
"main": "./out/main/index.js",
"author": "Hunterbidenafterlife",
"author": "angelplusultra",
"homepage": "https://github.com/angelplusultra/templix",
"repository": {
"url": "https://github.com/angelplusultra/templix"
Expand Down
2 changes: 1 addition & 1 deletion src/main/events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function registerEvents(browserWindow: BrowserWindow): void {
})

ipcMain.on('open-with-app', async (_, d: Main.OpenWithAppPayload) => {
exec(`open -a "${d.app.appName}" ${d.dest}`, (err) => {
exec(`open -a "${d.app.appName}" "${d.dest}"`, (err) => {
if (err) {
console.log(err)
}
Expand Down
1 change: 1 addition & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare namespace AppTypes {}
2 changes: 1 addition & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"include": ["electron.vite.config.*", "src/main/**/*", "src/preload/*"],
"compilerOptions": {
"composite": true,
"types": ["electron-vite/node", "./src/main/index.d.ts"]
"types": ["electron-vite/node", "./src/main/index.d.ts", "src/types/index.d.ts"]
}
}
1 change: 1 addition & 0 deletions tsconfig.web.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"src/preload/*.d.ts"
],
"compilerOptions": {
"types": ["./src/types/index.d.ts"],
"composite": true,
"jsx": "react-jsx",
"baseUrl": ".",
Expand Down

0 comments on commit e6f1f47

Please sign in to comment.