Skip to content

Commit d9056e2

Browse files
authored
Merge pull request #219 from DnsChanger/fix/windows-app-icon
Fix/windows app icon
2 parents c0d252b + 817b990 commit d9056e2

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Release
22
on:
33
push:
4-
branches: ["main"]
5-
paths-ignore:
6-
- "README.md"
7-
- "README-*.md"
8-
- ".github/ISSUE_TEMPLATE/*"
4+
tags:
5+
- "v*"
6+
workflow_dispatch:
97
jobs:
108
publish_on_linux:
119
runs-on: ubuntu-latest

src/main/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ process.env.PUBLIC = process.env.VITE_DEV_SERVER_URL
2727

2828
if (release().startsWith('6.1')) app.disableHardwareAcceleration()
2929

30-
if (process.platform === 'win32') app.setAppUserModelId(app.getName())
30+
if (process.platform === 'win32') app.setAppUserModelId('com.dnschanger.desktop')
3131

3232
if (!app.requestSingleInstanceLock()) {
3333
app.quit()
@@ -46,12 +46,13 @@ const startUrl =
4646
})
4747

4848
// const indexHtml = join(process.env.DIST, 'index.html')
49-
const icon = nativeImage.createFromPath(getIconPath())
49+
const iconPath = getIconPath()
50+
const icon = nativeImage.createFromPath(iconPath)
5051

5152
async function createWindow() {
5253
win = new BrowserWindow({
5354
title: 'DNS Changer',
54-
icon: icon,
55+
icon: iconPath,
5556
height: 500,
5657
width: 743,
5758
webPreferences: {

0 commit comments

Comments
 (0)