diff --git a/README.md b/README.md index ac307e0e9..618724a52 100644 --- a/README.md +++ b/README.md @@ -34,10 +34,19 @@ better, please feel free to [open issues][issues] liberally! ## Development -To launch the development environment, simply install nodejs and yarn (check node version in package.json engine.node) then type `yarn && yarn start`. To do a -production build, use `yarn run build:all`, or limit it to a particular OS: -`yarn run build:linux`, `yarn run build:mac` or `yarn run build:win`. See the -`scripts` section of `package.json` for more scripts. +To launch the development environment, simply install nodejs and yarn (check node version in package.json engine.node) then type `yarn && yarn start`. + +To do a production build, use `yarn run make`, or limit it to a particular OS: + +| OS | Architecture | Command | +|---------|--------------|---------------------------| +| Windows | | `yarn run make-win` | +| macOS | | `yarn run make-mac` | +| macOS | x64 | `yarn run make-mac-intel` | +| macOS | arm64 | `yarn run make-mac-arm` | +| Linux | | `yarn run make-lin` | + +See the `scripts` section of `package.json` for more scripts. ## Additional Information To get more information about our efforts, how Bazecor communicates with the Raise and the latest development news, please check the links below diff --git a/package.json b/package.json index 1ec6ff78a..694749f2e 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "@reforged/maker-appimage": "^3.3.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/commit-analyzer": "^10.0.1", + "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^9.0.3", "@semantic-release/npm": "^10.0.4", diff --git a/release.config.js b/release.config.js index 425761b52..8b49bb31b 100644 --- a/release.config.js +++ b/release.config.js @@ -9,7 +9,42 @@ module.exports = { [ "@semantic-release/github", { - assets: [{ path: "dist/*.exe" }, { path: "dist/*.dmg" }, { path: "dist/*.AppImage" }], + prepare: [ + { + path: "@semantic-release/exec", + cmd: "mv dist/*.exe dist/bazecor-v${nextRelease.version}.exe", + }, + { + path: "@semantic-release/exec", + cmd: "mv dist/*-x64.dmg dist/bazecor-v${nextRelease.version}-x64.dmg", + }, + { + path: "@semantic-release/exec", + cmd: "mv dist/*-arm64.dmg dist/bazecor-v${nextRelease.version}-arm64.dmg", + }, + { + path: "@semantic-release/exec", + cmd: "mv dist/*.AppImage dist/bazecor-v${nextRelease.version}.AppImage", + }, + ], + assets: [ + { + path: "dist/bazecor-v${nextRelease.version}.exe", + name: "bazecor-v${nextRelease.version}.exe", + }, + { + path: "dist/bazecor-v${nextRelease.version}-x64.dmg", + name: "bazecor-v${nextRelease.version}-x64.dmg", + }, + { + path: "dist/bazecor-v${nextRelease.version}-arm64.dmg", + name: "bazecor-v${nextRelease.version}-arm64.dmg", + }, + { + path: "dist/bazecor-v${nextRelease.version}.AppImage", + name: "bazecor-v${nextRelease.version}.AppImage", + }, + ], }, ], ], diff --git a/src/renderer/App.jsx b/src/renderer/App.jsx index 6b72e38eb..4cea459c0 100644 --- a/src/renderer/App.jsx +++ b/src/renderer/App.jsx @@ -278,7 +278,7 @@ class App extends React.Component { // Store all settings from electron settings in electron store. const data = {}; const userPath = await ipcRenderer.invoke("get-userPath", "home"); - data.backupFolder = path.join(userPath, "Raise", "Backups"); + data.backupFolder = path.join(userPath, "Dygma", "Backups"); data.backupFrequency = 30; data.language = translator[locale.split("-")[0]] !== "" ? translator[locale.split("-")[0]] : "english"; data.darkMode = "system"; diff --git a/yarn.lock b/yarn.lock index 4db61dbf1..d3ac252ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2149,6 +2149,18 @@ resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-4.0.0.tgz#692810288239637f74396976a9340fbc0aa9f6f9" integrity sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ== +"@semantic-release/exec@^6.0.3": + version "6.0.3" + resolved "https://registry.yarnpkg.com/@semantic-release/exec/-/exec-6.0.3.tgz#d212fdf19633bdfb553de6cb6c7f8781933224db" + integrity sha512-bxAq8vLOw76aV89vxxICecEa8jfaWwYITw6X74zzlO0mc/Bgieqx9kBRz9z96pHectiTAtsCwsQcUyLYWnp3VQ== + dependencies: + "@semantic-release/error" "^3.0.0" + aggregate-error "^3.0.0" + debug "^4.0.0" + execa "^5.0.0" + lodash "^4.17.4" + parse-json "^5.0.0" + "@semantic-release/git@^10.0.1": version "10.0.1" resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-10.0.1.tgz#c646e55d67fae623875bf3a06a634dd434904498" @@ -2409,7 +2421,7 @@ version "4.3.5" resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.5.tgz#ae69bcbb1bebb68c4ac0b11e9d8ed04526b3562b" integrity sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng== - + "@types/classnames@^2.2.10": version "2.3.1" resolved "https://registry.yarnpkg.com/@types/classnames/-/classnames-2.3.1.tgz#3c2467aa0f1a93f1f021e3b9bcf938bd5dfdc0dd"