Skip to content

Commit

Permalink
Merge pull request #14 from Norgerman/sxf-dev
Browse files Browse the repository at this point in the history
change icons
  • Loading branch information
Norgerman authored Apr 15, 2017
2 parents 1895678 + 877d9e7 commit 46e1a23
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
Binary file added dist/assets/image/linux.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 dist/assets/image/mac.icns
Binary file not shown.
Binary file added dist/assets/image/win.ico
Binary file not shown.
5 changes: 4 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { app, BrowserWindow, ipcMain, dialog } from "electron";
import * as path from "path";
import * as url from "url";
import * as os from 'os';
import { AppTray } from "./electronMain/uiElements/appTray";

let win: Electron.BrowserWindow | null;
Expand All @@ -12,7 +13,9 @@ function createWindow() {
autoHideMenuBar: true, frame: false,
show: true, transparent: true,
resizable: false, skipTaskbar: true,
alwaysOnTop: true, hasShadow: false
alwaysOnTop: true,
hasShadow: false,
icon: os.platform() == 'linux' ? path.join(__dirname, '/assets/image/linux.png') : undefined
})

win.loadURL(url.format({
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"watch": "webpack --watch --config webpack.config.app.js",
"build": "webpack --config webpack.config.main.js && webpack --config webpack.config.app.js",
"test": "",
"package": "electron-packager ./dist electron-live2d --overwrite --asar=true --platform=all --arch=x64 --out=release-builds",
"package-win32-x64": "electron-packager ./dist electron-live2d --overwrite --asar=true --platform=win32 --arch=x64 --out=release-builds",
"package": "npm run package-win32-x64 && npm run package-linux-x64 && npm run package-osx-x64",
"package-win32-x64": "electron-packager ./dist electron-live2d --overwrite --asar=true --platform=win32 --arch=x64 --out=release-builds --icon=dist/assets/image/win.ico",
"package-linux-x64": "electron-packager ./dist electron-live2d --overwrite --asar=true --platform=linux --arch=x64 --out=release-builds",
"package-osx-x64": "electron-packager ./dist electron-live2d --overwrite --asar=true --platform=darwin --arch=x64 --out=release-builds"
"package-osx-x64": "electron-packager ./dist electron-live2d --overwrite --asar=true --platform=darwin --arch=x64 --out=release-builds --icon=dist/assets/image/mac.icns"
},
"author": "",
"license": "MIT",
Expand Down

0 comments on commit 46e1a23

Please sign in to comment.