chore: bump version to 1.6.10

This commit is contained in:
thecodrr
2021-12-09 01:10:56 +05:00
parent 93c0b93810
commit 0fc3fc5ace
3 changed files with 7 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
"name": "@notesnook/desktop",
"productName": "Notesnook",
"description": "Your private note taking space",
"version": "1.6.9",
"version": "1.6.10",
"private": true,
"main": "./build/electron.js",
"homepage": "https://notesnook.com/",

View File

@@ -1,7 +1,7 @@
{
"name": "notesnook",
"description": "Your private note taking space",
"version": "1.6.9",
"version": "1.6.10",
"private": true,
"main": "./src/App.js",
"homepage": "https://notesnook.com/",

View File

@@ -4,11 +4,11 @@
var APP_VERSION = {
formatted: format(
1690,
1610,
process.env.REACT_APP_GIT_HASH,
process.env.REACT_APP_PLATFORM
),
numerical: 1690,
numerical: 1610,
appUpdated: false,
appUpdateable: false,
changelog: undefined,
@@ -16,7 +16,7 @@ var APP_VERSION = {
};
var CACHED_VERSION = undefined;
console.log(process.env);
function useVersion() {
// const [version, setVersion] = useState(APP_VERSION);
@@ -38,10 +38,8 @@ export default useVersion;
* @param {"web"|"desktop"} type
*/
function format(version, hash, type) {
const parts = version.toString().split("");
return `${parts[0]}.${parts[1]}.${parts[2]}${
parts[3] && parts[3] !== "0" ? parts[3] : ""
}-${hash}-${type}`;
const [major, minor, bugfix0, bugfix1] = version.toString().split("");
return `${major}.${minor}.${bugfix0}${bugfix1 || ""}-${hash}-${type}`;
}
export function getAppVersion() {