Merge remote-tracking branch 'origin/master'

This commit is contained in:
muwoo 2022-02-18 11:43:45 +08:00
commit 1e4757f70d
4 changed files with 17 additions and 3 deletions

View File

@ -32,6 +32,8 @@ Based on electron open source toolbox, free integration of rich plug-ins, to cre
## Installation package ## Installation package
* [Rubick Mac OS](https://github.com/rubickCenter/rubick/releases) * [Rubick Mac OS](https://github.com/rubickCenter/rubick/releases)
* [Rubick Windows](https://github.com/rubickCenter/rubick/releases) * [Rubick Windows](https://github.com/rubickCenter/rubick/releases)
* [Rubick Linux](https://github.com/rubickCenter/rubick/releases)
## Feature list ## Feature list
- [x] Plug-in management based on npm package mode, installing plugins is as easy as installing npm packages. - [x] Plug-in management based on npm package mode, installing plugins is as easy as installing npm packages.
@ -41,6 +43,8 @@ Based on electron open source toolbox, free integration of rich plug-ins, to cre
- [x] Support searching for locally installed apps or preferences - [x] Support searching for locally installed apps or preferences
- [x] Support MacOS - [x] Support MacOS
- [x] Support Windows - [x] Support Windows
- [x] Support Linux
## Docs ## Docs

View File

@ -23,7 +23,7 @@
#### 示例 #### 示例
```js ```js
rubcik.onPluginReady(({ code, type, payload }) => { rubick.onPluginReady(({ code, type, payload }) => {
console.log('插件装配完成,已准备好') console.log('插件装配完成,已准备好')
}) })
/* /*

View File

@ -1,7 +1,14 @@
import path from "path";
import fs from "fs";
export default (): string => { export default (): string => {
let localDataFile: any = process.env.HOME; let localDataFile: any = process.env.HOME;
if (!localDataFile) { if (!localDataFile) {
localDataFile = process.env.LOCALAPPDATA; localDataFile = process.env.LOCALAPPDATA;
} }
return localDataFile; const rubickPath = path.join(localDataFile, "rubick")
if (!fs.existsSync(rubickPath)) {
fs.mkdirSync(rubickPath);
}
return rubickPath;
}; };

View File

@ -51,7 +51,10 @@ module.exports = {
}, },
mac: { mac: {
icon: "public/icons/icon.icns", icon: "public/icons/icon.icns",
target: "pkg", target: [
"dmg",
"pkg"
],
extendInfo: { extendInfo: {
LSUIElement: 1, LSUIElement: 1,
}, },