diff --git a/.flatpak-builder/ccache/disabled/ccache.conf b/.flatpak-builder/ccache/disabled/ccache.conf deleted file mode 100644 index 4d6556c..0000000 --- a/.flatpak-builder/ccache/disabled/ccache.conf +++ /dev/null @@ -1 +0,0 @@ -disable = true diff --git a/.flatpak-builder/checksums/x86_64-flatpak-mainfest.yaml b/.flatpak-builder/checksums/x86_64-flatpak-mainfest.yaml deleted file mode 100644 index d1af494..0000000 --- a/.flatpak-builder/checksums/x86_64-flatpak-mainfest.yaml +++ /dev/null @@ -1 +0,0 @@ -1861e02f0dc10eb32d81082466e3767bbd42a698ba844b4ce4a34c0fa3105b9c \ No newline at end of file diff --git a/.gitignore b/.gitignore index ca37839..70191f9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ .virt_env/* todo.db commands.sql +.out/* +.flatpak-builder/* diff --git a/com.ione15.ion_todo_planner.desktop b/com.ione15.ion_todo_planner.desktop index be9dde2..a16c68e 100755 --- a/com.ione15.ion_todo_planner.desktop +++ b/com.ione15.ion_todo_planner.desktop @@ -1,5 +1,6 @@ #!/usr/bin/env xdg-open [Desktop Entry] Name=Ion Todo Planner -Exec=python main.py +Exec=/app/bin/main.py +Path=/app/bin Type=Application diff --git a/flatpak-mainfest.yaml b/flatpak-mainfest.yaml index 2892d0d..627910f 100644 --- a/flatpak-mainfest.yaml +++ b/flatpak-mainfest.yaml @@ -1,4 +1,66 @@ -name: com.ione15.ion_todo_planner -buildsystem: simple -build-commands: - - pip3 install --prefix=/app --no-deps . +{ + "id": "com.ione15.ion_todo_planner", + "runtime": "org.freedesktop.Platform", + "runtime-version": "23.08", + "sdk": "org.freedesktop.Sdk", + "name": "com.ione15.ion_todo_planner", + "command": "main.py", + "modules": [ + { + "name": "main", + "buildsystem": "simple", + "build-commands": [ + "install -D main.py /app/bin/main.py" + ], + "sources": [ + { + "type": "file", + "path": "main.py" + } + ], + "name": "tkinter", + "buildsystem": "simple", + "build-commands": [ + "pip3 install --prefix=${FLATPAK_DEST} ." + ], + "sources": [ + { + "type": "git", + "url": "https://github.com/iwalton3/tkinter-standalone", + "commit": "d9cb97c5bd4f814c73678366e0e48220776b6ad3" + } + ], + "modules": [ + { + "name": "tcl8.6", + "sources": [ + { + "type": "archive", + "url": "https://prdownloads.sourceforge.net/tcl/tcl8.6.12-src.tar.gz", + "sha256": "26c995dd0f167e48b11961d891ee555f680c175f7173ff8cb829f4ebcde4c1a6" + } + ], + "subdir": "unix", + "post-install": [ + "chmod +w ${FLATPAK_DEST}/lib/libtcl8.6.so" + ] + }, + { + "name": "tk8.6", + "sources": [ + { + "type": "archive", + "url": "https://prdownloads.sourceforge.net/tcl/tk8.6.12-src.tar.gz", + "sha256": "12395c1f3fcb6bed2938689f797ea3cdf41ed5cb6c4766eec8ac949560310630" + } + ], + "subdir": "unix", + "post-install": [ + "chmod +w ${FLATPAK_DEST}/lib/libtk8.6.so" + ] + } + ] + } + ] +} + diff --git a/main.py b/main.py old mode 100644 new mode 100755 index 0e431fd..abd6a75 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +#!/bin/python3 # Ion-Todo-Planner # Copyright (C) 2024 Ione 15 #