Add new app icon (#232)
@ -106,6 +106,7 @@ const configuration: webpack.Configuration = {
|
||||
new HtmlWebpackPlugin({
|
||||
filename: path.join('index.html'),
|
||||
template: path.join(webpackPaths.srcRendererPath, 'index.ejs'),
|
||||
favicon: path.join(webpackPaths.assetsPath, 'icons', 'favicon.ico'),
|
||||
minify: {
|
||||
collapseWhitespace: true,
|
||||
removeAttributeQuotes: true,
|
||||
|
@ -120,6 +120,7 @@ const configuration: webpack.Configuration = {
|
||||
new HtmlWebpackPlugin({
|
||||
filename: 'index.html',
|
||||
template: path.join(webpackPaths.srcRendererPath, 'index.ejs'),
|
||||
favicon: path.join(webpackPaths.assetsPath, 'icons', 'favicon.ico'),
|
||||
minify: {
|
||||
collapseWhitespace: true,
|
||||
removeAttributeQuotes: true,
|
||||
|
@ -5,6 +5,7 @@ const rootPath = path.join(__dirname, '../..');
|
||||
const dllPath = path.join(__dirname, '../dll');
|
||||
|
||||
const srcPath = path.join(rootPath, 'src');
|
||||
const assetsPath = path.join(rootPath, 'assets');
|
||||
const srcMainPath = path.join(srcPath, 'main');
|
||||
const srcRemotePath = path.join(srcPath, 'remote');
|
||||
const srcRendererPath = path.join(srcPath, 'renderer');
|
||||
@ -24,6 +25,7 @@ const distWebPath = path.join(distPath, 'web');
|
||||
const buildPath = path.join(releasePath, 'build');
|
||||
|
||||
export default {
|
||||
assetsPath,
|
||||
rootPath,
|
||||
dllPath,
|
||||
srcPath,
|
||||
|
@ -1,3 +1,5 @@
|
||||
<img src="assets/feishin.png" alt="logo" title="feishin" align="right" height="60px" />
|
||||
|
||||
# Feishin
|
||||
|
||||
<p align="center">
|
||||
|
BIN
assets/icon.ico
Before Width: | Height: | Size: 3.3 KiB |
BIN
assets/icon.png
Before Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 980 B After Width: | Height: | Size: 2.8 KiB |
BIN
assets/icons/favicon.ico
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
assets/icons/icon.icns
Normal file
BIN
assets/icons/icon.ico
Normal file
After Width: | Height: | Size: 176 KiB |
BIN
assets/icons/icon.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
media/feishin-alt.pdn
Normal file
BIN
media/feishin-alt.png
Normal file
After Width: | Height: | Size: 118 KiB |
BIN
media/feishin.pdn
Normal file
BIN
media/feishin.png
Normal file
After Width: | Height: | Size: 101 KiB |
@ -65,6 +65,7 @@
|
||||
"x64"
|
||||
]
|
||||
},
|
||||
"icon": "assets/icons/icon.icns",
|
||||
"type": "distribution",
|
||||
"hardenedRuntime": true,
|
||||
"entitlements": "assets/entitlements.mac.plist",
|
||||
@ -89,14 +90,15 @@
|
||||
"target": [
|
||||
"nsis",
|
||||
"zip"
|
||||
]
|
||||
],
|
||||
"icon": "assets/icons/icon.ico"
|
||||
},
|
||||
"linux": {
|
||||
"target": [
|
||||
"AppImage",
|
||||
"tar.xz"
|
||||
],
|
||||
"icon": "assets/icons/placeholder.png",
|
||||
"icon": "assets/icons/icon.png",
|
||||
"category": "Development"
|
||||
},
|
||||
"directories": {
|
||||
|
@ -129,7 +129,9 @@ const createTray = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
tray = isLinux() ? new Tray(getAssetPath('icon.png')) : new Tray(getAssetPath('icon.ico'));
|
||||
tray = isLinux()
|
||||
? new Tray(getAssetPath('icons/icon.png'))
|
||||
: new Tray(getAssetPath('icons/icon.ico'));
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
click: () => {
|
||||
@ -212,7 +214,7 @@ const createWindow = async () => {
|
||||
autoHideMenuBar: true,
|
||||
frame: false,
|
||||
height: 900,
|
||||
icon: getAssetPath('icon.png'),
|
||||
icon: getAssetPath('icons/icon.png'),
|
||||
minHeight: 640,
|
||||
minWidth: 480,
|
||||
show: false,
|
||||
|