Skip to content

Commit

Permalink
dev update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanff committed May 7, 2024
1 parent efb8b9f commit 3004278
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
5 changes: 5 additions & 0 deletions dev-app-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
publish:
provider: github
repo: anime.gf-dev
owner: cyanff
vPrefixedTagName: false
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "agf",
"version": "0.0.0",
"description": "An Electron application with React and TypeScript",
"homepage": "https://anime.gf",
"author": "anime.gf",
Expand Down
5 changes: 5 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ app.whenReady().then(async () => {
}
electronApp.setAppUserModelId("gf.anime");

// Set the update config path to the dev-app-update.yml in development
if (is.dev) {
autoUpdater.updateConfigPath = path.join(process.cwd(), "dev-app-update.yml");
}

// https://stackoverflow.com/questions/37828758/electron-js-how-to-minimize-close-window-to-system-tray-and-restore-window-back
const tray = new Tray(nativeImage.createFromPath(icon));
const contextMenu = Menu.buildFromTemplate([
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default function App() {
}}
>
<div
className="flex h-screen overflow-hidden bg-neutral-500 text-sm text-tx-primary antialiased lg:text-base"
className="flex h-screen overflow-hidden bg-background text-sm text-tx-primary antialiased lg:text-base"
onDrop={handleDrop}
onDragOver={(e) => {
e.preventDefault();
Expand Down
10 changes: 0 additions & 10 deletions src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ export function deepFreeze(object: any) {
return Object.freeze(object);
}

export async function fileExists(path: string) {
try {
await fsp.access(path);
return true;
} catch {
// File doesn't exist or not accessible (e.g. no permissions)
return false;
}
}

/**
* Remove all top level properties matching the blacklist from an object
* @param obj The object to clone and remove properties from
Expand Down

0 comments on commit 3004278

Please sign in to comment.