{
 "app_id": "io.github.gcclinux.smalltextpad",
 "source_url": "https://raw.githubusercontent.com/gcclinux/smalltextpad/main/io.github.gcclinux.smalltextpad.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-desktop",
  "--filesystem=xdg-download",
  "--env=PATH=/app/jre/bin:/app/bin:/usr/bin",
  "--env=JAVA_HOME=/app/jre"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T12:58:43.198076+00:00",
 "manifest": {
  "app-id": "io.github.gcclinux.smalltextpad",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk21"
  ],
  "command": "smalltextpad",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--device=dri",
   "--filesystem=home",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-download",
   "--env=PATH=/app/jre/bin:/app/bin:/usr/bin",
   "--env=JAVA_HOME=/app/jre"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk21/install.sh"
    ]
   },
   {
    "name": "smalltextpad",
    "buildsystem": "simple",
    "build-commands": [
     "find src/ -name \"*.java\" > sources.txt",
     "mkdir -p bin",
     "/usr/lib/sdk/openjdk21/bin/javac -d bin -Xlint:deprecation @sources.txt",
     "mkdir -p bin/wagemaker/co/uk/lang",
     "cp src/wagemaker/co/uk/lang/*.properties bin/wagemaker/co/uk/lang/",
     "cp -r res/* bin/",
     "cp -r dic bin/",
     "mkdir -p /app/share/smalltextpad",
     "/usr/lib/sdk/openjdk21/bin/jar cfm /app/share/smalltextpad/SmallTextPad.jar src/META-INF/MANIFEST.MF -C bin .",
     "mkdir -p /app/bin",
     "cat > /app/bin/smalltextpad << 'EOF'\n#!/bin/bash\nexec java -jar /app/share/smalltextpad/SmallTextPad.jar \"$@\"\nEOF\n",
     "chmod 755 /app/bin/smalltextpad",
     "mkdir -p /app/share/applications",
     "cat > /app/share/applications/io.github.gcclinux.smalltextpad.desktop << 'EOF'\n[Desktop Entry]\nVersion=1.0\nType=Application\nName=SmallTextPad\nComment=A lightweight Java text editor with encryption and multi-language support\nComment[es]=Un editor de texto ligero en Java con cifrado y soporte multi-idioma\nComment[fr]=Un \u00e9diteur de texte l\u00e9ger en Java avec chiffrement et support multi-langues\nComment[de]=Ein leichtgewichtiger Java-Texteditor mit Verschl\u00fcsselung und Mehrsprachunterst\u00fctzung\nExec=smalltextpad %F\nIcon=io.github.gcclinux.smalltextpad\nTerminal=false\nStartupNotify=true\nMimeType=text/plain;text/x-java;application/x-smalltextpad-encrypted;\nCategories=Office;TextEditor;Development;\nKeywords=text;editor;java;encryption;\nStartupWMClass=SmallTextPad\nEOF\n",
     "mkdir -p /app/share/icons/hicolor/128x128/apps",
     "mkdir -p /app/share/icons/hicolor/256x256/apps",
     "mkdir -p /app/share/icons/hicolor/512x512/apps",
     "cp res/smalltextpad_128x128.png /app/share/icons/hicolor/128x128/apps/io.github.gcclinux.smalltextpad.png",
     "cp res/smalltextpad_256x256.png /app/share/icons/hicolor/256x256/apps/io.github.gcclinux.smalltextpad.png",
     "if command -v convert >/dev/null 2>&1; then\n  convert res/smalltextpad_1024x1024.png -resize 512x512 /app/share/icons/hicolor/512x512/apps/io.github.gcclinux.smalltextpad.png\nelse\n  # Fallback: use 256x256 as 512x512 (will be upscaled by system)\n  cp res/smalltextpad_256x256.png /app/share/icons/hicolor/512x512/apps/io.github.gcclinux.smalltextpad.png\nfi\n",
     "mkdir -p /app/share/metainfo",
     "cat > /app/share/metainfo/io.github.gcclinux.smalltextpad.metainfo.xml << 'EOF'\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<component type=\"desktop-application\">\n  <id>io.github.gcclinux.smalltextpad</id>\n  <metadata_license>CC0-1.0</metadata_license>\n  <project_license>MIT</project_license>\n  <name>SmallTextPad</name>\n  <summary>A lightweight Java text editor with encryption and multi-language support</summary>\n  <description>\n    <p>\n      SmallTextPad is a lightweight text editor written in Java (Swing). It includes \n      basic editing features, undo/redo, printing, and a simple file encryption format \n      (.sstp). The application supports multiple languages and provides a clean, \n      simple interface for text editing tasks.\n    </p>\n    <p>Features:</p>\n    <ul>\n      <li>Basic text editing with undo/redo</li>\n      <li>File encryption with .sstp format</li>\n      <li>Multi-language support</li>\n      <li>Print functionality</li>\n      <li>Lightweight and fast</li>\n      <li>Cross-platform Java application</li>\n    </ul>\n  </description>\n  <launchable type=\"desktop-id\">io.github.gcclinux.smalltextpad.desktop</launchable>\n  <screenshots>\n    <screenshot type=\"default\">\n      <caption>Main editor window</caption>\n      <image>https://gcclinux.github.io/smalltextpad/screenshots/main.png</image>\n    </screenshot>\n  </screenshots>\n  <url type=\"homepage\">https://gcclinux.github.io/smalltextpad/</url>\n  <url type=\"bugtracker\">https://github.com/gcclinux/smalltextpad/issues</url>\n  <developer_name>Ricardo Wagemaker</developer_name>\n  <releases>\n    <release version=\"1.5.1\" date=\"2025-01-10\">\n      <description>\n        <p>Bug fixes and improvements</p>\n      </description>\n    </release>\n  </releases>\n  <content_rating type=\"oars-1.1\" />\n</component>\nEOF\n",
     "mkdir -p /app/share/doc/smalltextpad",
     "cp README.md /app/share/doc/smalltextpad/",
     "cp LICENSE /app/share/doc/smalltextpad/",
     "if [ -f doc/SmallTextPadLicense.txt ]; then cp doc/SmallTextPadLicense.txt /app/share/doc/smalltextpad/; fi"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "."
     }
    ]
   }
  ]
 }
}