|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en-US"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + |
| 6 | +<!-- Begin Jekyll SEO tag v2.8.0 --> |
| 7 | +<title>Flatpak Build Instructions | SmallTextPad</title> |
| 8 | +<meta name="generator" content="Jekyll v4.4.1" /> |
| 9 | +<meta property="og:title" content="Flatpak Build Instructions" /> |
| 10 | +<meta name="author" content="Ricardo Wagemaker" /> |
| 11 | +<meta property="og:locale" content="en_US" /> |
| 12 | +<meta name="description" content="How to build SmallTextPad as a Flatpak package from source" /> |
| 13 | +<meta property="og:description" content="How to build SmallTextPad as a Flatpak package from source" /> |
| 14 | +<link rel="canonical" href="http://localhost:4000/README-flatpak.html" /> |
| 15 | +<meta property="og:url" content="http://localhost:4000/README-flatpak.html" /> |
| 16 | +<meta property="og:site_name" content="SmallTextPad" /> |
| 17 | +<meta property="og:type" content="website" /> |
| 18 | +<meta name="twitter:card" content="summary" /> |
| 19 | +<meta property="twitter:title" content="Flatpak Build Instructions" /> |
| 20 | +<script type="application/ld+json"> |
| 21 | +{"@context":"https://schema.org","@type":"WebPage","author":{"@type":"Person","name":"Ricardo Wagemaker"},"description":"How to build SmallTextPad as a Flatpak package from source","headline":"Flatpak Build Instructions","url":"http://localhost:4000/README-flatpak.html"}</script> |
| 22 | +<!-- End Jekyll SEO tag --> |
| 23 | + |
| 24 | + <link rel="preconnect" href="https://fonts.gstatic.com"> |
| 25 | + <link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin> |
| 26 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 27 | + <meta name="theme-color" content="#157878"> |
| 28 | + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> |
| 29 | + <link rel="stylesheet" href="/assets/css/style.css?v="> |
| 30 | + <!-- start custom head snippets, customize with your own _includes/head-custom.html file --> |
| 31 | + |
| 32 | +<!-- Setup Google Analytics --> |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +<!-- You can set your favicon here --> |
| 37 | +<!-- link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" --> |
| 38 | + |
| 39 | +<!-- end custom head snippets --> |
| 40 | + |
| 41 | + </head> |
| 42 | + <body> |
| 43 | + <a id="skip-to-content" href="#content">Skip to the content.</a> |
| 44 | + |
| 45 | + <header class="page-header" role="banner"> |
| 46 | + <h1 class="project-name">Flatpak Build Instructions</h1> |
| 47 | + <h2 class="project-tagline">How to build SmallTextPad as a Flatpak package from source</h2> |
| 48 | + |
| 49 | + |
| 50 | + <a href="" class="btn">Download .zip</a> |
| 51 | + <a href="" class="btn">Download .tar.gz</a> |
| 52 | + |
| 53 | + </header> |
| 54 | + |
| 55 | + <main id="content" class="main-content" role="main"> |
| 56 | + <h1 id="smalltextpad-flatpak-build-instructions">SmallTextPad Flatpak Build Instructions</h1> |
| 57 | + |
| 58 | +<p>This guide explains how to build SmallTextPad as a Flatpak package from source.</p> |
| 59 | + |
| 60 | +<h2 id="prerequisites">Prerequisites</h2> |
| 61 | + |
| 62 | +<h3 id="install-pre-requisite-flatpakrepo--flatpak-builder">Install pre-requisite flatpakrepo & flatpak-builder</h3> |
| 63 | + |
| 64 | +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>flatpak remote-add <span class="nt">--if-not-exists</span> <span class="nt">--user</span> flathub https://dl.flathub.org/repo/flathub.flatpakrepo |
| 65 | +</code></pre></div></div> |
| 66 | + |
| 67 | +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>flatpak <span class="nb">install </span>org.flatpak.Builder |
| 68 | +</code></pre></div></div> |
| 69 | + |
| 70 | +<h2 id="download-the-flatpak-manifest">Download the Flatpak Manifest</h2> |
| 71 | + |
| 72 | +<h4 id="download-the-iogithubgcclinuxsmalltextpadyml">Download the io.github.gcclinux.smalltextpad.yml</h4> |
| 73 | + |
| 74 | +<p><a href="https://raw.githubusercontent.com/gcclinux/smalltextpad/refs/heads/main/io.github.gcclinux.smalltextpad.yml">https://raw.githubusercontent.com/gcclinux/smalltextpad/refs/heads/main/io.github.gcclinux.smalltextpad.yml</a></p> |
| 75 | + |
| 76 | +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>curl <span class="nt">-O</span> https://raw.githubusercontent.com/gcclinux/smalltextpad/refs/heads/main/io.github.gcclinux.smalltextpad.yml |
| 77 | +</code></pre></div></div> |
| 78 | + |
| 79 | +<h2 id="build-process">Build Process</h2> |
| 80 | + |
| 81 | +<h3 id="build-the-flatpak">Build the Flatpak</h3> |
| 82 | + |
| 83 | +<p>Use the flatpak-builder command to build the package:</p> |
| 84 | + |
| 85 | +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>flatpak-builder <span class="nt">--force-clean</span> <span class="nt">--user</span> <span class="nt">--install-deps-from</span><span class="o">=</span>flathub <span class="nt">--repo</span><span class="o">=</span>repo builddir io.github.gcclinux.smalltextpad.yml |
| 86 | +</code></pre></div></div> |
| 87 | + |
| 88 | +<h3 id="export-the-flatpak-package">Export the Flatpak Package</h3> |
| 89 | + |
| 90 | +<p>After the build is complete, export the package to a file:</p> |
| 91 | + |
| 92 | +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>flatpak build-export repo builddir |
| 93 | +</code></pre></div></div> |
| 94 | + |
| 95 | +<h3 id="create-the-flatpak-file">Create the Flatpak File</h3> |
| 96 | + |
| 97 | +<p>Use the flatpak build-bundle command to create the .flatpak file:</p> |
| 98 | + |
| 99 | +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>flatpak build-bundle repo SmallTextPad-1.5.1.flatpak io.github.gcclinux.smalltextpad |
| 100 | +</code></pre></div></div> |
| 101 | + |
| 102 | +<h3 id="install-the-created-file">Install the Created File</h3> |
| 103 | + |
| 104 | +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>flatpak <span class="nb">install</span> <span class="nt">--user</span> SmallTextPad-<span class="si">$(</span><span class="nb">arch</span><span class="si">)</span><span class="nt">-1</span>.5.1.flatpak |
| 105 | +</code></pre></div></div> |
| 106 | + |
| 107 | +<h2 id="running-smalltextpad">Running SmallTextPad</h2> |
| 108 | + |
| 109 | +<p>After installation, you can run SmallTextPad from your application menu or via command line:</p> |
| 110 | + |
| 111 | +<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>flatpak run io.github.gcclinux.smalltextpad |
| 112 | +</code></pre></div></div> |
| 113 | + |
| 114 | +<h2 id="notes">Notes</h2> |
| 115 | + |
| 116 | +<ul> |
| 117 | + <li>The Flatpak includes all necessary Java runtime dependencies</li> |
| 118 | + <li>SmallTextPad will have access to your home directory, documents, desktop, and downloads folders</li> |
| 119 | + <li>The application supports both X11 and Wayland display servers</li> |
| 120 | + <li>All encryption, multi-language support, and core features are included in the Flatpak build</li> |
| 121 | +</ul> |
| 122 | + |
| 123 | + |
| 124 | + <footer class="site-footer"> |
| 125 | + |
| 126 | + <span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span> |
| 127 | + </footer> |
| 128 | + </main> |
| 129 | + </body> |
| 130 | +</html> |
0 commit comments