Skip to content

Commit

Permalink
pack
Browse files Browse the repository at this point in the history
  • Loading branch information
leibnizli committed Jan 11, 2024
1 parent 1ad77f1 commit 141ec79
Show file tree
Hide file tree
Showing 9 changed files with 11,351 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ node_modules
*.dmg
.idea
*lock.json
/build/
electron-packager-darwin-template
electron-packager-mac
*.zip
*.log

out/
.env
build/bundle.js
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ English | [简体中文](./README-zh-CN.md)

## Install

### Overseas users
### International network (国际网)

* <a href="https://github.com/leibnizli/hummingbird/releases">**macOS v4.2.0**</a> (Supports drag and drop folder compression and multi-threading)
* <a href="https://drive.google.com/file/d/1eMLdviqWVWRv8gXT_d1W1uUZoIwIumVS/view?usp=sharing">**Windows v3.0.0**</a> (Support the drag and drop folder compression)
* <a href="https://github.com/leibnizli/hummingbird/releases">**Windows v4.2.0**</a> (Supports drag and drop folder compression and multi-threading)

### Mainland users(大陆用户
### Continental users(大陆网

* <a href="https://pan.baidu.com/s/1_i0fzJ916mGe6Kn-zLERsQ?pwd=z79c">**macOS v4.2.0**</a> (支持拖放文件夹压缩,支持多线程)
* <a href="https://pan.baidu.com/s/1146zRGqLFlDR27a7rUgr5w">**Windows v3.0.0**</a> (支持拖放文件夹压缩)
* <a href="https://pan.baidu.com/s/1146zRGqLFlDR27a7rUgr5w">**Windows v3.0.0**</a> (支持拖放文件夹压缩,支持多线程)

## Usage

Expand Down
14 changes: 14 additions & 0 deletions build/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- https://github.com/electron/electron-notarize#prerequisites -->
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<!-- https://github.com/electron-userland/electron-builder/issues/3940 -->
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
Binary file added build/icon.icns
Binary file not shown.
Binary file added build/icon.ico
Binary file not shown.
Binary file added build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 10 additions & 5 deletions forge.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
module.exports = {
packagerConfig: {
icon: "./src/images/icon",
icon: "./build/icon",
// osxNotarize: {
// tool: 'notarytool',
// appleApiKey: process.env.APPLE_API_KEY,
// appleApiKeyId: process.env.APPLE_API_KEY_ID,
// appleApiIssuer: process.env.APPLE_API_ISSUER
// }
},
rebuildConfig: {},

makers: [
{
name: '@electron-forge/maker-squirrel',
config: {},
name: '@electron-forge/maker-squirrel'
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
platforms: ['darwin', 'win32'],
},
{
name: '@electron-forge/maker-dmg',
config: {
icon: './src/images/icon.icns',
icon: './build/icon.icns',
format: 'ULFO'
}
},
Expand Down
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,24 @@
"url": "https://github.com/leibnizli/hummingbird/issues"
},
"homepage": "https://github.com/leibnizli/hummingbird#readme",
"build": {
"appId": "dev.arayofsunshine.hummingbird",
"mac": {
"category": "tool"
},
"asar": false
},
"scripts": {
"build": "webpack --watch",
"postinstall": "electron-builder install-app-deps",
"pack": "rm -rf ./dist && electron-builder --dir",
"dist": "rm -rf ./dist && electron-builder",
"build-watch": "webpack --watch",
"build": "webpack",
"start": "electron-forge start",
"dev": "electron .",
"clean": "rm -rf ./out",
"package": "electron-forge package",
"make": "npm run clean && electron-forge make",
"make": "npm run clean && export $(cat .env | xargs) && electron-forge make",
"publish": "electron-forge publish"
},
"devDependencies": {
Expand All @@ -34,6 +45,7 @@
"@electron-forge/publisher-github": "^7.2.0",
"babel-loader": "^8.0.5",
"electron": "^28.1.0",
"electron-builder": "^24.9.1",
"electron-packager": "17.1.2",
"electron-squirrel-startup": "^1.0.0",
"webpack": "^4.28.4",
Expand Down
Loading

0 comments on commit 141ec79

Please sign in to comment.