mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
chore: bump version to 1.6.10
This commit is contained in:
@@ -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/",
|
||||
|
||||
@@ -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/",
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user