mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-10 13:20:28 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
1e4757f70d
@ -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
|
||||
|
@ -23,7 +23,7 @@
|
||||
#### 示例
|
||||
|
||||
```js
|
||||
rubcik.onPluginReady(({ code, type, payload }) => {
|
||||
rubick.onPluginReady(({ code, type, payload }) => {
|
||||
console.log('插件装配完成,已准备好')
|
||||
})
|
||||
/*
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -51,7 +51,10 @@ module.exports = {
|
||||
},
|
||||
mac: {
|
||||
icon: "public/icons/icon.icns",
|
||||
target: "pkg",
|
||||
target: [
|
||||
"dmg",
|
||||
"pkg"
|
||||
],
|
||||
extendInfo: {
|
||||
LSUIElement: 1,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user