mirror of
https://github.com/rubickCenter/rubick
synced 2025-09-10 20:56:54 +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
|
## 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
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#### 示例
|
#### 示例
|
||||||
|
|
||||||
```js
|
```js
|
||||||
rubcik.onPluginReady(({ code, type, payload }) => {
|
rubick.onPluginReady(({ code, type, payload }) => {
|
||||||
console.log('插件装配完成,已准备好')
|
console.log('插件装配完成,已准备好')
|
||||||
})
|
})
|
||||||
/*
|
/*
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user