Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 assets are available in build packages #238

Merged
merged 3 commits into from
Dec 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
🐛 assets directory not ignored from build
Move assets directory to src and create symlink.
The directory name seems to collide with a builder-specific
directory and is ignored from the build when packaging the asar
package.

Signed-off-by: Marc Nuri <marc@marcnuri.com>
manusa committed Dec 6, 2022
commit 23ad3675666701c32230adf2be723c1fbaac5f23
1 change: 1 addition & 0 deletions assets
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
@@ -257,7 +257,7 @@ const init = () => {
nativeTheme.themeSource = theme;
mainWindow = new BrowserWindow({
width, height, resizable: true, maximizable: true,
icon: path.resolve(__dirname, '..', '..', 'assets', getPlatform() === 'linux' ? 'icon.png' : 'icon.ico'),
icon: path.resolve(__dirname, '..', 'assets', getPlatform() === 'linux' ? 'icon.png' : 'icon.ico'),
webPreferences
});
mainWindow.removeMenu();
2 changes: 1 addition & 1 deletion src/tray/index.js
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ const initTray = () => {
}
const {trayEnabled} = loadSettings();
if (trayEnabled) {
tray = new Tray(path.resolve(__dirname, '..', '..', 'assets', getPlatform() === 'linux' ? 'icon.png' : 'icon.ico'));
tray = new Tray(path.resolve(__dirname, '..', 'assets', getPlatform() === 'linux' ? 'icon.png' : 'icon.ico'));
tray.on('click', () => eventBus.emit(APP_EVENTS.restore));
}
};