Skip to content

Commit

Permalink
windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
leibnizli committed Jan 11, 2024
1 parent beb0a8a commit d551770
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: windows
on:
push:
tags:
- '*'

branches:
- windows
jobs:

publish_on_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@master
with:
node-version: 18.17.1
Expand Down
2 changes: 1 addition & 1 deletion forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
platforms: ['darwin','windows'],
},
{
name: '@electron-forge/maker-dmg',
Expand Down
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ app.on('ready', function () {
mainWindow = new BrowserWindow({
icon: './src/images/icon.png',
title: 'Hummingbird v4.0.0',
width: 320,
height: 267,
width: 1320,
height: 1267,
frame: false,
resizable: false,
webPreferences: {
Expand All @@ -54,7 +54,7 @@ app.on('ready', function () {
mainWindow.loadURL('file://' + __dirname + '/index.html');

// 打开开发工具
//mainWindow.openDevTools();
mainWindow.openDevTools();
// 当 window 被关闭,这个事件会被发出
mainWindow.on('closed', function () {
// 取消引用 window 对象,如果你的应用支持多窗口的话,通常会把多个 window 对象存放在一个数组里面,但这次不是。
Expand Down

0 comments on commit d551770

Please sign in to comment.