You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-09-02 20:46:21 +02:00
Compare commits
4 Commits
cli-v2.9.1
...
server-v2.
Author | SHA1 | Date | |
---|---|---|---|
|
88d027625a | ||
|
dde34f1d7d | ||
|
dd6d0482e1 | ||
|
bcaad10d74 |
@@ -8,9 +8,8 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"audit": "lerna-audit",
|
"audit": "lerna-audit",
|
||||||
"bootstrap": "lerna bootstrap --no-ci",
|
"bootstrap": "lerna bootstrap --force-local --no-ci",
|
||||||
"bootstrapIgnoreScripts": "lerna bootstrap --ignore-scripts --no-ci",
|
"bootstrapServerOnly": "lerna bootstrap --force-local --no-ci --include-dependents --include-dependencies --scope @joplin/server",
|
||||||
"bootstrapServerOnly": "lerna bootstrap --no-ci --include-dependents --include-dependencies --scope @joplin/server",
|
|
||||||
"build": "lerna run build && npm run tsc",
|
"build": "lerna run build && npm run tsc",
|
||||||
"buildApiDoc": "npm start --prefix=packages/app-cli -- apidoc ../../readme/api/references/rest_api.md",
|
"buildApiDoc": "npm start --prefix=packages/app-cli -- apidoc ../../readme/api/references/rest_api.md",
|
||||||
"buildDoc": "./packages/tools/build-all.sh",
|
"buildDoc": "./packages/tools/build-all.sh",
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
],
|
],
|
||||||
"owner": "Laurent Cozic"
|
"owner": "Laurent Cozic"
|
||||||
},
|
},
|
||||||
"version": "1.8.1",
|
"version": "2.0.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
"joplin": "./main.js"
|
"joplin": "./main.js"
|
||||||
},
|
},
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Joplin Web Clipper [DEV]",
|
"name": "Joplin Web Clipper [DEV]",
|
||||||
"version": "1.8.0",
|
"version": "2.0.0",
|
||||||
"description": "Capture and save web pages and screenshots from your browser to Joplin.",
|
"description": "Capture and save web pages and screenshots from your browser to Joplin.",
|
||||||
"homepage_url": "https://joplinapp.org",
|
"homepage_url": "https://joplinapp.org",
|
||||||
"content_security_policy": "script-src 'self'; object-src 'self'",
|
"content_security_policy": "script-src 'self'; object-src 'self'",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@joplin/app-desktop",
|
"name": "@joplin/app-desktop",
|
||||||
"version": "1.8.5",
|
"version": "2.0.0",
|
||||||
"description": "Joplin for Desktop",
|
"description": "Joplin for Desktop",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
@@ -142,7 +142,7 @@ android {
|
|||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 2097631
|
versionCode 2097631
|
||||||
versionName "1.8.5"
|
versionName "2.0.0"
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
|
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
|
||||||
}
|
}
|
||||||
|
@@ -492,7 +492,7 @@
|
|||||||
INFOPLIST_FILE = Joplin/Info.plist;
|
INFOPLIST_FILE = Joplin/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
MARKETING_VERSION = 10.8.1;
|
MARKETING_VERSION = 20.0.0;
|
||||||
OTHER_LDFLAGS = (
|
OTHER_LDFLAGS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"-ObjC",
|
"-ObjC",
|
||||||
@@ -519,7 +519,7 @@
|
|||||||
INFOPLIST_FILE = Joplin/Info.plist;
|
INFOPLIST_FILE = Joplin/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
MARKETING_VERSION = 10.8.1;
|
MARKETING_VERSION = 20.0.0;
|
||||||
OTHER_LDFLAGS = (
|
OTHER_LDFLAGS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"-ObjC",
|
"-ObjC",
|
||||||
@@ -666,7 +666,7 @@
|
|||||||
INFOPLIST_FILE = ShareExtension/Info.plist;
|
INFOPLIST_FILE = ShareExtension/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
|
||||||
MARKETING_VERSION = 10.8.1;
|
MARKETING_VERSION = 20.0.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.cozic.joplin.ShareExtension;
|
PRODUCT_BUNDLE_IDENTIFIER = net.cozic.joplin.ShareExtension;
|
||||||
@@ -697,7 +697,7 @@
|
|||||||
INFOPLIST_FILE = ShareExtension/Info.plist;
|
INFOPLIST_FILE = ShareExtension/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
|
||||||
MARKETING_VERSION = 10.8.1;
|
MARKETING_VERSION = 20.0.0;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.cozic.joplin.ShareExtension;
|
PRODUCT_BUNDLE_IDENTIFIER = net.cozic.joplin.ShareExtension;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 1,
|
"manifest_version": 1,
|
||||||
"id": "<%= pluginId %>",
|
"id": "<%= pluginId %>",
|
||||||
"app_min_version": "1.8",
|
"app_min_version": "2.0",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"name": "<%= pluginName %>",
|
"name": "<%= pluginName %>",
|
||||||
"description": "<%= pluginDescription %>",
|
"description": "<%= pluginDescription %>",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "generator-joplin",
|
"name": "generator-joplin",
|
||||||
"version": "1.8.1",
|
"version": "2.0.0",
|
||||||
"description": "Scaffolds out a new Joplin plugin",
|
"description": "Scaffolds out a new Joplin plugin",
|
||||||
"homepage": "https://github.com/laurent22/joplin/tree/dev/packages/generator-joplin",
|
"homepage": "https://github.com/laurent22/joplin/tree/dev/packages/generator-joplin",
|
||||||
"author": {
|
"author": {
|
||||||
@@ -34,4 +34,4 @@
|
|||||||
"repository": "https://github.com/laurent22/generator-joplin",
|
"repository": "https://github.com/laurent22/generator-joplin",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true
|
"private": true
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@joplin/lib",
|
"name": "@joplin/lib",
|
||||||
"version": "1.8.2",
|
"version": "2.0.0",
|
||||||
"description": "Joplin Core library",
|
"description": "Joplin Core library",
|
||||||
"author": "Laurent Cozic",
|
"author": "Laurent Cozic",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@joplin/plugin-repo-cli",
|
"name": "@joplin/plugin-repo-cli",
|
||||||
"version": "1.8.2",
|
"version": "2.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@joplin/renderer",
|
"name": "@joplin/renderer",
|
||||||
"version": "1.8.2",
|
"version": "2.0.0",
|
||||||
"description": "The Joplin note renderer, used the mobile and desktop application",
|
"description": "The Joplin note renderer, used the mobile and desktop application",
|
||||||
"repository": "https://github.com/laurent22/joplin/tree/dev/packages/renderer",
|
"repository": "https://github.com/laurent22/joplin/tree/dev/packages/renderer",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
2
packages/server/package-lock.json
generated
2
packages/server/package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@joplin/server",
|
"name": "@joplin/server",
|
||||||
"version": "1.8.0",
|
"version": "2.0.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@joplin/server",
|
"name": "@joplin/server",
|
||||||
"version": "1.8.0",
|
"version": "2.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start-dev": "nodemon --config nodemon.json dist/app.js --env dev",
|
"start-dev": "nodemon --config nodemon.json dist/app.js --env dev",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@joplin/tools",
|
"name": "@joplin/tools",
|
||||||
"version": "1.8.2",
|
"version": "2.0.0",
|
||||||
"description": "Various tools for Joplin",
|
"description": "Various tools for Joplin",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Laurent Cozic",
|
"author": "Laurent Cozic",
|
||||||
|
@@ -21,7 +21,7 @@ async function main() {
|
|||||||
|
|
||||||
await execCommand2('npm publish');
|
await execCommand2('npm publish');
|
||||||
|
|
||||||
await completeReleaseWithChangelog(changelogPath, newVersion, newTag, 'CLI');
|
await completeReleaseWithChangelog(changelogPath, newVersion, newTag, 'CLI', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch((error) => {
|
main().catch((error) => {
|
||||||
|
@@ -3,23 +3,29 @@ import { execCommand2, rootDir, gitPullTry, completeReleaseWithChangelog } from
|
|||||||
const serverDir = `${rootDir}/packages/server`;
|
const serverDir = `${rootDir}/packages/server`;
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
const argv = require('yargs').argv;
|
||||||
|
if (!['release', 'prerelease'].includes(argv.type)) throw new Error('Must specify release type. Either --type=release or --type=prerelease');
|
||||||
|
const isPreRelease = argv.type === 'prerelease';
|
||||||
|
|
||||||
await gitPullTry();
|
await gitPullTry();
|
||||||
|
|
||||||
process.chdir(serverDir);
|
process.chdir(serverDir);
|
||||||
const version = (await execCommand2('npm version patch')).trim();
|
const version = (await execCommand2('npm version patch')).trim();
|
||||||
const versionShort = version.substr(1);
|
const versionShort = version.substr(1);
|
||||||
|
const imageVersion = versionShort + (isPreRelease ? '-beta' : '');
|
||||||
const tagName = `server-${version}`;
|
const tagName = `server-${version}`;
|
||||||
|
|
||||||
process.chdir(rootDir);
|
process.chdir(rootDir);
|
||||||
console.info(`Running from: ${process.cwd()}`);
|
console.info(`Running from: ${process.cwd()}`);
|
||||||
|
|
||||||
await execCommand2(`docker build -t "joplin/server:${versionShort}" -f Dockerfile.server .`);
|
await execCommand2(`docker build -t "joplin/server:${imageVersion}" -f Dockerfile.server .`);
|
||||||
await execCommand2(`docker tag "joplin/server:${versionShort}" "joplin/server:latest"`);
|
await execCommand2(`docker tag "joplin/server:${imageVersion}" "joplin/server:latest"`);
|
||||||
await execCommand2(`docker push joplin/server:${versionShort}`);
|
await execCommand2(`docker push joplin/server:${imageVersion}`);
|
||||||
await execCommand2('docker push joplin/server:latest');
|
|
||||||
|
if (!isPreRelease) await execCommand2('docker push joplin/server:latest');
|
||||||
|
|
||||||
const changelogPath = `${rootDir}/readme/changelog_server.md`;
|
const changelogPath = `${rootDir}/readme/changelog_server.md`;
|
||||||
await completeReleaseWithChangelog(changelogPath, version, tagName, 'Server');
|
await completeReleaseWithChangelog(changelogPath, version, tagName, 'Server', isPreRelease);
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch((error) => {
|
main().catch((error) => {
|
||||||
|
@@ -22,7 +22,7 @@ function commandToString(commandName: string, args: string[] = []) {
|
|||||||
return output.join(' ');
|
return output.join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
async function insertChangelog(tag: string, changelogPath: string, changelog: string) {
|
async function insertChangelog(tag: string, changelogPath: string, changelog: string, isPrerelease: boolean) {
|
||||||
const currentText = await fs.readFile(changelogPath, 'UTF-8');
|
const currentText = await fs.readFile(changelogPath, 'UTF-8');
|
||||||
const lines = currentText.split('\n');
|
const lines = currentText.split('\n');
|
||||||
|
|
||||||
@@ -46,10 +46,11 @@ async function insertChangelog(tag: string, changelogPath: string, changelog: st
|
|||||||
const header = [
|
const header = [
|
||||||
'##',
|
'##',
|
||||||
`[${tag}](https://github.com/laurent22/joplin/releases/tag/${tag})`,
|
`[${tag}](https://github.com/laurent22/joplin/releases/tag/${tag})`,
|
||||||
'-',
|
|
||||||
// eslint-disable-next-line no-useless-escape
|
|
||||||
`${moment.utc().format('YYYY-MM-DD\THH:mm:ss')}Z`,
|
|
||||||
];
|
];
|
||||||
|
if (isPrerelease) header.push('(Pre-release)');
|
||||||
|
header.push('-');
|
||||||
|
// eslint-disable-next-line no-useless-escape
|
||||||
|
header.push(`${moment.utc().format('YYYY-MM-DD\THH:mm:ss')}Z`);
|
||||||
|
|
||||||
let newLines = [];
|
let newLines = [];
|
||||||
newLines.push(header.join(' '));
|
newLines.push(header.join(' '));
|
||||||
@@ -62,10 +63,10 @@ async function insertChangelog(tag: string, changelogPath: string, changelog: st
|
|||||||
return output.join('\n');
|
return output.join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function completeReleaseWithChangelog(changelogPath: string, newVersion: string, newTag: string, appName: string) {
|
export async function completeReleaseWithChangelog(changelogPath: string, newVersion: string, newTag: string, appName: string, isPreRelease: boolean) {
|
||||||
const changelog = (await execCommand2(`node ${rootDir}/packages/tools/git-changelog ${newTag}`, { })).trim();
|
const changelog = (await execCommand2(`node ${rootDir}/packages/tools/git-changelog ${newTag}`, { })).trim();
|
||||||
|
|
||||||
const newChangelog = await insertChangelog(newTag, changelogPath, changelog);
|
const newChangelog = await insertChangelog(newTag, changelogPath, changelog, isPreRelease);
|
||||||
|
|
||||||
await fs.writeFile(changelogPath, newChangelog);
|
await fs.writeFile(changelogPath, newChangelog);
|
||||||
|
|
||||||
|
@@ -1,5 +1,15 @@
|
|||||||
# Joplin Server Changelog
|
# Joplin Server Changelog
|
||||||
|
|
||||||
|
## [server-v2.0.1](https://github.com/laurent22/joplin/releases/tag/server-v2.0.1) (Pre-release) - 2021-05-14T13:55:45Z
|
||||||
|
|
||||||
|
- New: Add support for sharing notes via a link (ccbc329)
|
||||||
|
- New: Add support for sharing a folder (#4772)
|
||||||
|
- New: Added log page to view latest changes to files (874f301)
|
||||||
|
- Fixed: Prevent new user password from being hashed twice (76c143e)
|
||||||
|
- Fixed: Fixed crash when rendering note with links to non-existing resources or notes (07484de)
|
||||||
|
- Fixed: Fixed error handling when no session is provided (63a5bfa)
|
||||||
|
- Fixed: Fixed uploading empty file to the API (#4402)
|
||||||
|
|
||||||
## [server-v1.7.2](https://github.com/laurent22/joplin/releases/tag/server-v1.7.2) - 2021-01-24T19:11:10Z
|
## [server-v1.7.2](https://github.com/laurent22/joplin/releases/tag/server-v1.7.2) - 2021-01-24T19:11:10Z
|
||||||
|
|
||||||
- Fixed: Fixed password hashing when changing password
|
- Fixed: Fixed password hashing when changing password
|
||||||
|
Reference in New Issue
Block a user