Skip to content

Commit

Permalink
Change desktop icon for dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
wec43 committed Jul 2, 2024
1 parent 5f4b369 commit b388b2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions buildSrc/DevBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function runDevBuild({ stage, host, desktop, clean, ignoreMigration
await buildWebPart({ stage, host, version, mode, domainConfigs: extendedDomainConfigs })

if (desktop) {
await buildDesktopPart({ version })
await buildDesktopPart({ version, stage })
}
}

Expand Down Expand Up @@ -147,7 +147,7 @@ importScripts("./worker.js")
})
}

async function buildDesktopPart({ version }) {
async function buildDesktopPart({ version, stage }) {
await runStep("Desktop: Esbuild", async () => {
await esbuild({
entryPoints: ["src/desktop/DesktopMain.ts", "src/desktop/sqlworker.ts"],
Expand Down Expand Up @@ -181,6 +181,10 @@ globalThis.buildOptions.sqliteNativePath = "./better-sqlite3.node";`,
await runStep("Desktop: assets", async () => {
const desktopIconsPath = "./resources/desktop-icons"
await fs.copy(desktopIconsPath, "./build/desktop/resources/icons", { overwrite: true })
await fs.move("./build/desktop/resources/icons/logo-solo-dev.png", "./build/desktop/resources/icons/logo-solo-red.png", { overwrite: true })
await fs.move("./build/desktop/resources/icons/logo-solo-dev-small.png", "./build/desktop/resources/icons/logo-solo-red-small.png", {
overwrite: true,
})
const templateGenerator = (await import("./electron-package-json-template.js")).default
const packageJSON = await templateGenerator({
nameSuffix: "-debug",
Expand Down
Binary file added resources/desktop-icons/logo-solo-dev-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/desktop-icons/logo-solo-dev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b388b2e

Please sign in to comment.