Skip to content

Commit

Permalink
Updated Flatpak Appdata file, added script to bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
ransome1 committed Oct 26, 2023
1 parent fea5b62 commit 9970183
Show file tree
Hide file tree
Showing 10 changed files with 10,546 additions and 30 deletions.
26 changes: 26 additions & 0 deletions .erb/scripts/update-version-numbers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const fs = require('fs');
const packageJson = require('../../release/app/package.json');
const { format } = require('date-fns'); // You may need to install this library using `yarn add date-fns` if you haven't already.

// Update the .flatpak/com.github.ransome1.sleek.desktop file
let desktopContent = fs.readFileSync('../../flatpak/com.github.ransome1.sleek.desktop', 'utf8');
desktopContent = desktopContent.replace(/Version=.*\n/, `Version=${packageJson.version}\n`);
fs.writeFileSync('../../flatpak/com.github.ransome1.sleek.desktop', desktopContent);

console.log('Updated com.github.ransome1.sleek.desktop with version', packageJson.version);

// Update the com.github.ransome1.sleek.appdata.xml file
let appdataContent = fs.readFileSync('../../flatpak/com.github.ransome1.sleek.appdata.xml', 'utf8');
const today = new Date();
const formattedDate = format(today, 'yyyy-MM-dd');
appdataContent = appdataContent.replace(/<release version=".*?" date=".*?"\/>/, `<release version="${packageJson.version}" date="${formattedDate}"/>`);
fs.writeFileSync('../../flatpak/com.github.ransome1.sleek.appdata.xml', appdataContent);

console.log('Updated com.github.ransome1.sleek.appdata.xml with version', packageJson.version, 'and date', formattedDate);

// Update the snapcraft.yaml file
let snapcraftContent = fs.readFileSync('../../snap/snapcraft.yaml', 'utf8');
snapcraftContent = snapcraftContent.replace(/version: ".*?"/, `version: "${packageJson.version}"`);
fs.writeFileSync('../../snap/snapcraft.yaml', snapcraftContent);

console.log('Updated snapcraft.yaml with version', packageJson.version);
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ npm-debug.log.*
*.dtmp
*.drawio
*.snap
*FilterLang.js
*.lock
package-lock.json
*FilterLang.js
36 changes: 17 additions & 19 deletions flatpak/com.github.ransome1.sleek.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<metadata_license>MIT</metadata_license>
<project_license>MIT</project_license>
<developer_name>Robin Ahle</developer_name>
<content_rating type="oars-1.0"/>
<content_rating type="oars-1.1"/>
<releases>
<release version="2.0.0" date="2023-10-26"/>
</releases>
Expand All @@ -24,29 +24,27 @@
</recommends>
<description>
<p>sleek is an open-source (FOSS) todo manager based on the todo.txt syntax. Stripped down to only the most necessary features, and with a clean and simple interface, sleek aims to help you focus on getting things done.</p>
<p>All classic todo.txt attributes are supported and enhanced by additional features. Creating todos is straightforward, and tag-based filtering in tandem with highly customisable grouping and smart full-text search allow for rapid information retrieval. Completed todos can be hidden or archived into separate done.txt files. Easy integration with other todo.txt apps is facilitated by continuously scanning todo.txt files for changes.</p>
<p>sleek is available for Windows, MacOS and Linux, and in several languages. For a detailed list of features, see below.</p>
<p>All classic todo.txt attributes are supported and enhanced by additional features. Creating todos is straightforward, and tag-based filtering in tandem with highly customisable grouping and smart full-text search allows for rapid information retrieval. Completed todos can be hidden or archived into separate done.txt files. Easy integration with other todo.txt apps is facilitated by continuously scanning todo.txt files for changes.</p>
<p>sleek is available for Windows, macOS and Linux, and in several languages.</p>
<p>Features</p>
<ul>
<li>Uses existing todo.txt files or creates new ones</li>
<li>Add and search for todos by priorities, contexts, projects, due dates, creation dates, recurrences (repeating todos), threshold dates</li>
<li>Sort and group todos by priority, due and creation date, context and project or as they occur in the text file</li>
<li>Filter todos by context, project and priority</li>
<li>Find todos using full-text search compatible with todo.txt syntax</li>
<li>Inline autocomplete available</li>
<li>Dates and priorities can be selected by built-in picker elements</li>
<li>Navigable via keyboard shortcuts</li>
<li>Tabindex available</li>
<li>Options for due date reminders and notification badges</li>
<li>Easily toggle between dark and light mode</li>
<li>Compact view and zoom available</li>
<li>Completed todos can be shown, hidden and archived</li>
<li>Multi line todos can be created</li>
<li>Filters are sorted alphanummerically and can be renamed or deleted</li>
<li>Hyperlinks detected automatically</li>
<li>File watcher scans todo.txt files for changes</li>
<li>Simultaneously manage multiple todo.txt files</li>
<li>Language options: English, German, Italian, Spanish, French, Simplified Chinese, Brazilian Portugese, Japanese, Turkish, Hungarian, Czech, Polish, Russian</li>
<li>Add and search for todos by priority, contexts, projects, due date, creation date, completion date, recurrence (repeating todo), threshold dates (deferred todos), pomodoro intervals</li>
<li>Filter, sort, and group todos by all available attributes</li>
<li>Invert the sorting of each group</li>
<li>Find todos using a sophisticated advanced search based on the todo.txt syntax</li>
<li>Inline autocomplete available for adding contexts and projects</li>
<li>Multi-line and bulk todo creation</li>
<li>Due dates, threshold dates, recurrences, pomodoros and priorities can be selected by built-in picker elements</li>
<li>Speaking dates can be entered for due and threshold dates</li>
<li>Marking a recurring todo as complete, will create a new todo</li>
<li>Navigable via keyboard shortcuts</li>
<li>Due date notifications</li>
<li>Toggle between dark and light mode</li>
<li>Completed todos can be shown, hidden, and archived</li>
<li>Language options: English, German, Italian, Spanish, French, Simplified Chinese, Brazilian Portugese, Japanese, Turkish, Hungarian, Czech, Polish, Russian, Korean, Hindi</li>
</ul>
</description>
<screenshots>
Expand Down
2 changes: 1 addition & 1 deletion flatpak/com.github.ransome1.sleek.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Type=Application
Icon=com.github.ransome1.sleek
Categories=Office
Terminal=false
Comment=Todo manager based on the todo.txt syntax for Linux, free and open-source (FOSS)
Comment=todo.txt manager for Linux, free and open-source (FOSS)
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@
"@mui/system": "^5.14.15",
"@mui/x-date-pickers": "^6.10.0",
"dayjs": "^1.11.9",
"electron-debug": "^3.2.0",
"electron-log": "^4.4.8",
"electron-store": "^8.1.0",
"electron-updater": "^5.3.0",
"i18next": "^23.5.1",
"jstodotxt": "^1.0.0-alpha.0",
"material-ui-popup-state": "^5.0.9",
Expand All @@ -90,7 +87,6 @@
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^18.2.0",
"react-i18next": "^13.2.2",
"react-router-dom": "^6.11.2",
"sugar": "^2.0.6"
},
"devDependencies": {
Expand Down
5 changes: 3 additions & 2 deletions release/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
"main": "./dist/main/main.js",
"scripts": {
"rebuild": "node -r ts-node/register ../../.erb/scripts/electron-rebuild.js",
"postinstall": "npm run rebuild && npm run link-modules",
"link-modules": "node -r ts-node/register ../../.erb/scripts/link-modules.ts"
"postinstall": "yarn run rebuild && yarn run link-modules && yarn run update-version-numbers",
"link-modules": "node -r ts-node/register ../../.erb/scripts/link-modules.ts",
"update-version-numbers": "node ../../.erb/scripts/update-version-numbers.js"
},
"dependencies": {
"chokidar": "^3.5.3"
Expand Down
105 changes: 105 additions & 0 deletions release/app/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


anymatch@~3.1.2:
version "3.1.3"
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e"
integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==
dependencies:
normalize-path "^3.0.0"
picomatch "^2.0.4"

binary-extensions@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==

braces@~3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
dependencies:
fill-range "^7.0.1"

chokidar@^3.5.3:
version "3.5.3"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
dependencies:
anymatch "~3.1.2"
braces "~3.0.2"
glob-parent "~5.1.2"
is-binary-path "~2.1.0"
is-glob "~4.0.1"
normalize-path "~3.0.0"
readdirp "~3.6.0"
optionalDependencies:
fsevents "~2.3.2"

fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
dependencies:
to-regex-range "^5.0.1"

fsevents@~2.3.2:
version "2.3.3"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==

glob-parent@~5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
dependencies:
is-glob "^4.0.1"

is-binary-path@~2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
dependencies:
binary-extensions "^2.0.0"

is-extglob@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==

is-glob@^4.0.1, is-glob@~4.0.1:
version "4.0.3"
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
dependencies:
is-extglob "^2.1.1"

is-number@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==

normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==

picomatch@^2.0.4, picomatch@^2.2.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==

readdirp@~3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
dependencies:
picomatch "^2.2.1"

to-regex-range@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
dependencies:
is-number "^7.0.0"
Binary file removed snap/gui/icon.png
Binary file not shown.
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
All classic todo.txt attributes are supported and enhanced by additional features. Creating todos is straightforward, and tag-based filtering in tandem with highly customisable grouping and smart full-text search allow for rapid information retrieval. Completed todos can be hidden or archived into separate done.txt files. Easy integration with other todo.txt apps is facilitated by continuously scanning todo.txt files for changes.
sleek is available for Windows, MacOS and Linux, and in several languages. For a detailed list of features, see below.
sleek is available for Windows, MacOS and Linux, and in several languages.
grade: stable
confinement: strict
Expand Down
Loading

0 comments on commit 9970183

Please sign in to comment.