diff --git a/README.md b/README.md index 9b8c76e..2c72502 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/docs/api/README.md b/docs/docs/api/README.md index 419386f..316eb43 100644 --- a/docs/docs/api/README.md +++ b/docs/docs/api/README.md @@ -23,7 +23,7 @@ #### 示例 ```js -rubcik.onPluginReady(({ code, type, payload }) => { +rubick.onPluginReady(({ code, type, payload }) => { console.log('插件装配完成,已准备好') }) /* diff --git a/src/common/utils/getLocalDataFile.ts b/src/common/utils/getLocalDataFile.ts index dadeba4..31a5bbf 100644 --- a/src/common/utils/getLocalDataFile.ts +++ b/src/common/utils/getLocalDataFile.ts @@ -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; }; diff --git a/vue.config.js b/vue.config.js index 199794b..9c68d59 100644 --- a/vue.config.js +++ b/vue.config.js @@ -51,7 +51,10 @@ module.exports = { }, mac: { icon: "public/icons/icon.icns", - target: "pkg", + target: [ + "dmg", + "pkg" + ], extendInfo: { LSUIElement: 1, },