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
* [Rubick Mac OS](https://github.com/rubickCenter/rubick/releases)
* [Rubick Windows](https://github.com/rubickCenter/rubick/releases)
* [Rubick Linux](https://github.com/rubickCenter/rubick/releases)
## Feature list
- [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 MacOS
- [x] Support Windows
- [x] Support Linux
## Docs

View File

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

View File

@ -1,7 +1,14 @@
import path from "path";
import fs from "fs";
export default (): string => {
let localDataFile: any = process.env.HOME;
if (!localDataFile) {
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: {
icon: "public/icons/icon.icns",
target: "pkg",
target: [
"dmg",
"pkg"
],
extendInfo: {
LSUIElement: 1,
},