Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
leibnizli committed Jan 11, 2024
1 parent c9cc553 commit 0127120
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: linux
on:
push:
tags:
- '*'
branches:
- release

jobs:

Expand All @@ -15,6 +15,8 @@ jobs:
node-version: 18.17.1
- name: install dependencies
run: npm install
- name: build
run: npm run build
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: macOS
on:
push:
tags:
- 'v*'
branches:
- release

jobs:

publish_on_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@master
with:
node-version: 14
- name: install dependencies
run: npm install
- name: build
run: npm run build
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: windows
on:
push:
branches:
- windows
- release
jobs:

publish_on_win:
Expand All @@ -14,6 +14,8 @@ jobs:
node-version: 18.17.1
- name: install dependencies
run: npm install
- name: build
run: npm run build
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules
*.dmg
.idea
*lock.json
/build/
electron-packager-darwin-template
electron-packager-mac
*.zip
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','windows'],
platforms: ['darwin','win32'],
},
{
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: 1320,
height: 1267,
width: 320,
height: 267,
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"homepage": "https://github.com/leibnizli/hummingbird#readme",
"scripts": {
"build": "webpack --watch",
"build-watch": "webpack --watch",
"build": "webpack",
"start": "electron-forge start",
"dev": "electron .",
"clean": "rm -rf ./out",
Expand Down
1 change: 0 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function getFilesizeInBytes(filename) {
var fileSizeInBytes = stats.size;
return fileSizeInBytes;
}

function App(el, options) {
this.$el = $(el);
this.options = options;
Expand Down

0 comments on commit 0127120

Please sign in to comment.