mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
chore: bump version to 1.6.10
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "@notesnook/desktop",
|
"name": "@notesnook/desktop",
|
||||||
"productName": "Notesnook",
|
"productName": "Notesnook",
|
||||||
"description": "Your private note taking space",
|
"description": "Your private note taking space",
|
||||||
"version": "1.6.9",
|
"version": "1.6.10",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./build/electron.js",
|
"main": "./build/electron.js",
|
||||||
"homepage": "https://notesnook.com/",
|
"homepage": "https://notesnook.com/",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "notesnook",
|
"name": "notesnook",
|
||||||
"description": "Your private note taking space",
|
"description": "Your private note taking space",
|
||||||
"version": "1.6.9",
|
"version": "1.6.10",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./src/App.js",
|
"main": "./src/App.js",
|
||||||
"homepage": "https://notesnook.com/",
|
"homepage": "https://notesnook.com/",
|
||||||
|
|||||||
@@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
var APP_VERSION = {
|
var APP_VERSION = {
|
||||||
formatted: format(
|
formatted: format(
|
||||||
1690,
|
1610,
|
||||||
process.env.REACT_APP_GIT_HASH,
|
process.env.REACT_APP_GIT_HASH,
|
||||||
process.env.REACT_APP_PLATFORM
|
process.env.REACT_APP_PLATFORM
|
||||||
),
|
),
|
||||||
numerical: 1690,
|
numerical: 1610,
|
||||||
appUpdated: false,
|
appUpdated: false,
|
||||||
appUpdateable: false,
|
appUpdateable: false,
|
||||||
changelog: undefined,
|
changelog: undefined,
|
||||||
@@ -16,7 +16,7 @@ var APP_VERSION = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var CACHED_VERSION = undefined;
|
var CACHED_VERSION = undefined;
|
||||||
|
console.log(process.env);
|
||||||
function useVersion() {
|
function useVersion() {
|
||||||
// const [version, setVersion] = useState(APP_VERSION);
|
// const [version, setVersion] = useState(APP_VERSION);
|
||||||
|
|
||||||
@@ -38,10 +38,8 @@ export default useVersion;
|
|||||||
* @param {"web"|"desktop"} type
|
* @param {"web"|"desktop"} type
|
||||||
*/
|
*/
|
||||||
function format(version, hash, type) {
|
function format(version, hash, type) {
|
||||||
const parts = version.toString().split("");
|
const [major, minor, bugfix0, bugfix1] = version.toString().split("");
|
||||||
return `${parts[0]}.${parts[1]}.${parts[2]}${
|
return `${major}.${minor}.${bugfix0}${bugfix1 || ""}-${hash}-${type}`;
|
||||||
parts[3] && parts[3] !== "0" ? parts[3] : ""
|
|
||||||
}-${hash}-${type}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getAppVersion() {
|
export function getAppVersion() {
|
||||||
|
|||||||
Reference in New Issue
Block a user