Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix(desktop): remove icon extension
Browse files Browse the repository at this point in the history
fixes #1448
  • Loading branch information
horacioh committed Jan 15, 2024
1 parent 9abe53c commit a27c1e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/apps/desktop/forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let iconsPath = process.env.CI
const commonLinuxConfig: MakerDebConfig = {
options: {
categories: ['Development', 'Utility'],
icon: `${iconsPath}.png`,
icon: `${iconsPath}`,
maintainer: 'Mintter Inc.',
description: 'Mintter: a hyper.media protocol client',
productName: 'Mintter',
Expand Down
4 changes: 4 additions & 0 deletions frontend/apps/desktop/src/app-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import {createIPCHandler} from 'electron-trpc/main'
import {writeFile} from 'fs-extra'
import {decompressFromEncodedURIComponent} from 'lz-string'
import path from 'path'
import z from 'zod'
import {commentsApi} from './app-comments'
import {diagnosisApi} from './app-diagnosis'
Expand Down Expand Up @@ -159,6 +160,9 @@ export const router = t.router({
webPreferences: {
offscreen: true,
},
icon: process.env.CI
? path.resolve(__dirname, '../assets/icons-nightly/icon.png')
: path.resolve(__dirname, '../assets/icons/icon.png'),
})
await webView.webContents.loadURL(webUrl)
const htmlValue = await webView.webContents.executeJavaScript(
Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/desktop/src/app-windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export function createAppWindow(input: {
minHeight: windowType.minHeight,
maxWidth: windowType.maxWidth,
maxHeight: windowType.maxHeight,
icon: import.meta.env.RELEASE_NIGHTLY
icon: process.env.CI
? path.resolve(__dirname, '../assets/icons-nightly/icon.png')
: path.resolve(__dirname, '../assets/icons/icon.png'),
titleBarStyle: 'hidden',
Expand Down

0 comments on commit a27c1e3

Please sign in to comment.