From 2bd64bd73e74a7d75ab1feefa96ba74ad180caba Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Fri, 16 Feb 2024 17:01:26 +0100 Subject: [PATCH 1/4] Updating known issues. --- KNOWN_ISSUES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/KNOWN_ISSUES.md b/KNOWN_ISSUES.md index a15843ce..950acde7 100644 --- a/KNOWN_ISSUES.md +++ b/KNOWN_ISSUES.md @@ -5,6 +5,7 @@ for the complete list of bugs. # 2.0.0 +* Autolinking can crash the application on notebook or note delete (undefined link target). * Autolinking can break MathJax code blocks/text integrity in Markdown text. * Windows Server R2 2012: empty MF documentation repository in wrong location when MF is launched at the end of installation. From d27cd4b422a9f29ffdc7abaca1bb78ab72edad6f Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Fri, 16 Feb 2024 21:33:30 +0100 Subject: [PATCH 2/4] WIP Ubuntu and Debian 2.0.0 releases --- build/Makefile | 8 +++++--- .../ubuntu-launchpad-releases-from-mind.sh | 17 +++++++++++------ build/ubuntu/ubuntu-pbuilder-add-distros.sh | 6 +++--- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/build/Makefile b/build/Makefile index d55df367..3dc0dc4c 100644 --- a/build/Makefile +++ b/build/Makefile @@ -285,13 +285,13 @@ dist-dmg: ## build macOS Disk iMaGe .dmg package # # Debian # -# MindForger PPA: https://www.mindforger.com/debian is managed by aptly +# OBSOLETE: MindForger PPA: https://www.mindforger.com/debian is managed by aptly # -# - information about MindForger's Debian PPAs can be found in +# - OBSOLETE: information about MindForger's Debian PPAs can be found in # https://www.mindforger.com/debian/index.html # # - aptly CANNOT be used to build one PPA for all Debian releases -# therefore every release has it's own PPA +# therefore every release has its own PPA # # - the structure looks like this (from deprecated debian/ to new debian-ppa/): # @@ -306,6 +306,8 @@ dist-dmg: ## build macOS Disk iMaGe .dmg package # pool/ # index.html ... created by me w/ how to set it up # +# - Debian distributions are built in VirtualBox VMs on "mind" machine +# # - source Debian packages for every version (which are used by aptly) # are stored in # diff --git a/build/ubuntu/ubuntu-launchpad-releases-from-mind.sh b/build/ubuntu/ubuntu-launchpad-releases-from-mind.sh index 80ba6bc6..f0cea487 100755 --- a/build/ubuntu/ubuntu-launchpad-releases-from-mind.sh +++ b/build/ubuntu/ubuntu-launchpad-releases-from-mind.sh @@ -85,22 +85,27 @@ # Ubuntu version: # - https://wiki.ubuntu.com/Releases # - obsolete: -# precise quantal saucy precise utopic vivid wily yakkety artful cosmic +# precise quantal saucy precise utopic vivid wily yakkety artful cosmic kinetic # - current : -# (trusty) xenial bionic (cosmic disco eoan) focal (groovy) (hirsute) (impish) jammy kinetic +# (trusty) xenial bionic (cosmic disco eoan) focal (groovy) (hirsute) (impish) jammy (kinetic) mantic # - command (Bash tuple of distro names): -# trusty xenial bionic focal jammy kinetic +# trusty xenial bionic focal jammy mantic +# - done (use ./ubuntu-launchpad-releases-from-mind.sh ): +# focal jammy kinetic +# - TODO - required hunspell version not available on older Ubuntu versions: +# ERROR: pbuilder-satisfydepends-dummy : Depends: libhunspell-dev (>= 1.6) but it is not going to be installed. +# trusty xenial bionic mantic if [[ ${#} == 1 ]] then export UBUNTU_VERSIONS=(${1}) else - export UBUNTU_VERSIONS=(focal) + export UBUNTU_VERSIONS=(kinetic) fi # environment variables -export MAJOR_VERSION=1 -export MINOR_VERSION=55 +export MAJOR_VERSION=2 +export MINOR_VERSION=0 export PATCH_VERSION=5 # patch version is incremented for every Ubuntu build @ Launchpad export MF_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}" # semantic version export RM_CMD="rm -vrf " diff --git a/build/ubuntu/ubuntu-pbuilder-add-distros.sh b/build/ubuntu/ubuntu-pbuilder-add-distros.sh index 9d15fbb9..3cf310ea 100755 --- a/build/ubuntu/ubuntu-pbuilder-add-distros.sh +++ b/build/ubuntu/ubuntu-pbuilder-add-distros.sh @@ -18,9 +18,9 @@ # along with this program. If not, see . # https://wiki.ubuntu.com/Releases -# old: precise quantal saucy precise utopic vivid wily trusty (old GCC) yakkety artful cosmic -# current: trusty xenial bionic disco eoan jammy kinetic -for DISTRO in jammy kinetic +# old: precise quantal saucy precise utopic vivid wily trusty (old GCC) yakkety artful cosmic disco eoan kinetic +# current: trusty xenial bionic focal jammy mantic +for DISTRO in bionic do sudo pbuilder --create ${DISTRO} rm -vf ~/pbuilder/${DISTRO}-base.tgz From 4e84187f979e4ed60cd3da876da44f2020bfefaf Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Fri, 16 Feb 2024 21:53:29 +0100 Subject: [PATCH 3/4] Removing duplicate deb devenv make target. --- build/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/build/Makefile b/build/Makefile index 7e898875..3dc0dc4c 100644 --- a/build/Makefile +++ b/build/Makefile @@ -120,9 +120,6 @@ gen-ui-class: ## generate UI C++ class skeleton: CLASS_NAME=My_Class @echo "Generating UI C++ class for name: $(CLASS_NAME)" ./make/gen-cpp-ui-class.py $(CLASS_NAME) -.PHONY: devenv-debian -devenv-debian: - sudo apt-get install build-essential zlib1g-dev libhunspell-dev libqt5webkit5-dev qttools5-dev-tools ccache cmake debhelper # # build From 8fc13a7e118a3900c4aa73cdcadb38199a9b81e3 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Sat, 17 Feb 2024 20:25:19 +0100 Subject: [PATCH 4/4] Updating PAD.xml and Ubuntu release scripts & Makefile targets. --- PAD.xml | 16 +++++----- build/Makefile | 4 +-- build/debian/debian-ppa-aptly-build.sh | 6 ++-- .../ubuntu-launchpad-releases-from-mind.sh | 32 ++++++++++++++----- build/ubuntu/ubuntu-pbuilder-add-distros.sh | 13 ++++++-- 5 files changed, 47 insertions(+), 24 deletions(-) diff --git a/PAD.xml b/PAD.xml index d29d444f..d3047fe2 100644 --- a/PAD.xml +++ b/PAD.xml @@ -35,12 +35,12 @@ MindForger 2.0.0 - 01 - 30 + 02 + 16 2024 - - - + 0 + 0 + 0 Freeware Major Update Install and Uninstall @@ -71,9 +71,9 @@ notebook, knowledge, ai, markdown, ide, ml, nlp Thinking note taking application. MindForger is open, free, well performing thinking note taking application with Markdown editor which respects your privacy. - Are you drowning in information, but starving for knowledge? Where do you keep your private remarks like ideas, personal plans, exam preparation notes, gift tips, how-tos, dreams, business visions, finance strategies, meeting minutes and auto coach - Are you drowning in information, but starving for knowledge? Where do you keep your private remarks like ideas, personal plans, exam preparation notes, gift tips, how-tos, dreams, business visions, finance strategies, meeting minutes and auto coaching notes? Loads of documents, sketches and remarks spread around the file system, cloud, web and Post-it notes? Are you affraid of your knowledge privacy? Are you able to find particular remarks once - Are you drowning in information, but starving for knowledge? Where do you keep your private remarks like ideas, personal plans, exam preparation notes, gift tips, how-tos, dreams, business visions, finance strategies, meeting minutes and auto coaching notes? Loads of documents, sketches and remarks spread around the file system, cloud, web and Post-it notes? Are you affraid of your knowledge privacy? Are you able to find particular remarks once you create them? Do you know how are the remarks mutually related when you browse, read or write them? No? MindForger is open, free, well performing thinking note taking application with Markdown editor which respects your privacy. + Are you drowning in information, but starving for knowledge? Where do you keep your private remarks like ideas, personal plans, exam preparation notes, gift tips, how-tos, dreams, business visions, finance strategies, meeting minutes and auto coach + Are you drowning in information, but starving for knowledge? Where do you keep your private remarks like ideas, personal plans, exam preparation notes, gift tips, how-tos, dreams, business visions, finance strategies, meeting minutes and auto coaching notes? Loads of documents, sketches and remarks spread around the file system, cloud, web and Post-it notes? Are you affraid of your knowledge privacy? Are you able to find particular remarks once + Are you drowning in information, but starving for knowledge? Where do you keep your private remarks like ideas, personal plans, exam preparation notes, gift tips, how-tos, dreams, business visions, finance strategies, meeting minutes and auto coaching notes? Loads of documents, sketches and remarks spread around the file system, cloud, web and Post-it notes? Are you affraid of your knowledge privacy? Are you able to find particular remarks once you create them? Do you know how are the remarks mutually related when you browse, read or write them? No? MindForger is open, free, well performing thinking note taking application with Markdown editor which respects your privacy. diff --git a/build/Makefile b/build/Makefile index 3dc0dc4c..9fb34c8f 100644 --- a/build/Makefile +++ b/build/Makefile @@ -331,8 +331,8 @@ dist-dmg: ## build macOS Disk iMaGe .dmg package # obsolete repos: jessie-main .PHONY: dist-debian-ppa -dist-debian-aptly-create-ppa: ## create Debian PPA for current Debian release: DISTRO=bullseye - cd ./build/debian && ./debian-ppa-aptly-build.sh +dist-debian-aptly-create-ppa: ## create Debian PPA for all releases + cd ./debian && ./debian-ppa-aptly-build.sh # # ^ Debian diff --git a/build/debian/debian-ppa-aptly-build.sh b/build/debian/debian-ppa-aptly-build.sh index b07ec64e..61a6c2fe 100755 --- a/build/debian/debian-ppa-aptly-build.sh +++ b/build/debian/debian-ppa-aptly-build.sh @@ -21,17 +21,17 @@ # # This script builds MindForger/HSTR Debian PPA for a particular Debian release. -# - it adds all .deb pacakges in given directory to aptly repository. +# - it adds all .deb packages in given directory to aptly repository. # # Usage: # -# MF_DEBIAN_DISTRO_DIR=... MF_DEBIAN_RELEASE=... ./debian-aptly-add-deb.sh +# MF_DEBIAN_DISTRO_DIR=... MF_DEBIAN_RELEASE=... ./debian-ppa-aptly-build.sh # # Example: # # MF_DEBIAN_DEB_DIR=~/p/mindforger/debian/aptly/mindforger/12-bookworm \ # MF_DEBIAN_RELEASE=bookworm \ -# ./debian-release-aptly-build.sh +# ./debian-ppa-aptly-build.sh # # aptly abstractions hierarchy: # diff --git a/build/ubuntu/ubuntu-launchpad-releases-from-mind.sh b/build/ubuntu/ubuntu-launchpad-releases-from-mind.sh index f0cea487..8a35dac0 100755 --- a/build/ubuntu/ubuntu-launchpad-releases-from-mind.sh +++ b/build/ubuntu/ubuntu-launchpad-releases-from-mind.sh @@ -78,6 +78,18 @@ # https://www.debian.org/doc/debian-policy/ # +# ######################################################################## +# # Troubleshooting +# ######################################################################## + +# PROBLEM: build successfull, but .deb is NOT uploaded to Launchpad +# - check that .dsc file is signed using GPG +# - manually upload .dsc file from ~/p/mindforger/launchpad/* to Launchpad +# using dput: +# +# dput ppa:ultradvorka/productivity mindforger_2.0.6-0ubuntu1_source.changes +# + # ######################################################################## # # Configuration # ######################################################################## @@ -86,12 +98,16 @@ # - https://wiki.ubuntu.com/Releases # - obsolete: # precise quantal saucy precise utopic vivid wily yakkety artful cosmic kinetic -# - current : -# (trusty) xenial bionic (cosmic disco eoan) focal (groovy) (hirsute) (impish) jammy (kinetic) mantic -# - command (Bash tuple of distro names): +# - history (* LTS): +# trusty* xenial* bionic* (cosmic disco eoan) focal* (groovy hirsute impish) +# jammy* (kinetic lunar) mantic +# - current ~ Bash tuple below || ./ubuntu-launchpad-releases-from-mind.sh + manual upload: # trusty xenial bionic focal jammy mantic -# - done (use ./ubuntu-launchpad-releases-from-mind.sh ): -# focal jammy kinetic +# - NOT RELEASED (non-satisfying hunspell version - can be fixed by downgrade to libhunspell-dev (>= 1.6) in build/ubuntu/debian/control: +# trusty xenial +# +# +# # - TODO - required hunspell version not available on older Ubuntu versions: # ERROR: pbuilder-satisfydepends-dummy : Depends: libhunspell-dev (>= 1.6) but it is not going to be installed. # trusty xenial bionic mantic @@ -106,7 +122,7 @@ fi # environment variables export MAJOR_VERSION=2 export MINOR_VERSION=0 -export PATCH_VERSION=5 # patch version is incremented for every Ubuntu build @ Launchpad +export PATCH_VERSION=1 # patch version is incremented for every Ubuntu build @ Launchpad export MF_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}" # semantic version export RM_CMD="rm -vrf " export CP_CMD="cp -vrf " @@ -114,8 +130,8 @@ export CP_CMD="cp -vrf " export OPT_VERBOSE="v" if [[ ${#} == 1 ]] then - export OPT_DO_PUSH="false" # "true" to upload src to bazaar - export OPT_DO_RELEASE="false" # "true" to dpush binary .deb to Launchpad and TRIGGER release + export OPT_DO_PUSH="true" # "true" to upload src to bazaar + export OPT_DO_RELEASE="true" # "true" to dpush binary .deb to Launchpad and TRIGGER release else #export OPT_DO_PUSH="false" # "true" to upload src to bazaar #export OPT_DO_RELEASE="false" # "true" to dpush binary .deb to Launchpad and TRIGGER release diff --git a/build/ubuntu/ubuntu-pbuilder-add-distros.sh b/build/ubuntu/ubuntu-pbuilder-add-distros.sh index 3cf310ea..069b99d7 100755 --- a/build/ubuntu/ubuntu-pbuilder-add-distros.sh +++ b/build/ubuntu/ubuntu-pbuilder-add-distros.sh @@ -18,9 +18,16 @@ # along with this program. If not, see . # https://wiki.ubuntu.com/Releases -# old: precise quantal saucy precise utopic vivid wily trusty (old GCC) yakkety artful cosmic disco eoan kinetic -# current: trusty xenial bionic focal jammy mantic -for DISTRO in bionic +# - obsolete: +# precise quantal saucy precise utopic vivid wily trusty (old GCC) +# yakkety artful cosmic disco eoan kinetic +# - current: +# trusty xenial bionic focal jammy mantic +# +# Distro is stored to: +# ~/pbuilder +# +for DISTRO in mantic do sudo pbuilder --create ${DISTRO} rm -vf ~/pbuilder/${DISTRO}-base.tgz