Skip to content
notuxiusPublic

About

Portable Windows app for tracking releases, updating and installing software, and verifying downloads. Relf checks for its own updates automatically.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Relf

Relf is short for Release Shelf. It keeps portable Windows apps, archives, and disk images up to date. Start with an empty app list and choose Add item to track your first download.

Relf shows its version at the right end of the bottom status row.

Batch checks and downloads start with up to three items at a time. Relf adds slots as items succeed, up to six. It starts fewer new items when publishers throttle requests, return HTTP 503, or time out. Active items can finish, and the limit can drop as low as one. A ready download can start while other publishers are still being checked. Each active download has a progress bar beneath Downloading… in its Status cell. The bottom status row shows one active transfer and its position. It adds the total download count once the checks are complete. The final summary counts outcomes such as updates, cached repairs, pending publications, errors, and cancellations. Items already up to date and files restored from a local copy are excluded. The bottom row and the open item info dialog also show the percentage received for the item they display. When the publisher does not provide a file size, the bars animate until the transfer finishes.

Run it

Download Relf.exe from the latest GitHub release. Place it in a writable folder and double-click it. The executable includes Python. Saving your first item creates a recipes folder beside it. Keep that folder when replacing the EXE.

The Windows executable checks GitHub for Relf updates when it opens and every 24 hours while it stays open. Builds with release notifications also check GitHub when a release is announced over ntfy or when the connection to ntfy returns after an interruption. Click the refresh icon beside the version number in the bottom status row or choose More → Check for Relf updates to check manually. The icon spins during manual and automatic checks, including any update download and verification.

When a newer release is announced, Relf discards any older update it had ready. If GitHub still lists the previous release or the announced update fails to download or verify, Relf retries about once a minute. If GitHub rate-limits a check, Relf can still use the last checked release if it’s newer than the installed version and at least as new as any release announcement it’s waiting for.

Once an update download is verified, Relf update available appears in the bottom status row. Click it to open the install window, then choose Update and restart. Relf keeps your app list and settings and restores the previous executable if the updated window fails to open.

Release notifications use an ordinary public topic on ntfy.sh. Relf accepts announcements signed with the release key, then checks the release on GitHub. To enable notifications for a build, set the GitHub Actions variables RELF_UPDATE_TOPIC and RELF_UPDATE_PUBLIC_KEY, and put the matching Ed25519 private key in the RELF_UPDATE_SIGNING_KEY Actions secret. Store both keys as hex-encoded raw 32-byte keys. Keep the topic and public key stable so previously published builds can verify new announcements. If the Announce published update job fails, rerun that job from the release workflow.

To run from source, use Python 3.13 or newer. Double-click relf_ui.pyw or open PowerShell in this folder and run:

python .\relf_ui.pyw

Open Checklist in the sidebar to see local setup adjustments by name and status. Tracked lists items you follow through publisher pages, GitHub releases, or direct download links. Available updates shows items with a newer release or a pending publication. In progress shows all items currently being checked, updated, downloaded, or verified. Its count updates as each item starts and finishes. Needs attention shows errors, files that need repair, and pending publications. The counts beside these views update as checks finish.

Directly below Tracked, Local only lists saved files and folders, including entries whose path is missing. Right-click a downloadable app and choose Disable updates to pause publisher checks and downloads. The app appears in Disabled, where you can right-click it and choose Enable updates to resume. The choice is saved in the recipe and applies to the desktop app and CLI. Offline file verification stays available.

Under Categories in the sidebar, select a category to see its items. Each count shows how many items belong to that category. The list updates when you save an item or reload the app list. In the collapsed sidebar, click the Categories icon to hide or show the category icons. Hover over a category icon to see its name, or click it to filter the app list. When the icons overflow, use the arrows above and below them to scroll.

Right-click an app and choose Move to category… to select an existing category or type a new one. Clear the field to move the app to Uncategorized. Right-click a sidebar category and choose Rename category… to change its name for every app in it, including apps hidden by search. Press Shift+F10 on a selected app or category to open the same menu from the keyboard.

Click the search field or press Ctrl+F to focus the field. Type or paste up to 64 characters to filter the current view by name, category, or ID. Clicking outside keeps the filter active. Click the × or press Esc in the field to clear the search.

The app list starts sorted by Category in ascending order. Click Name, Category, or Status to sort by that column. Click the same header again to reverse the order. The arrow shows the current direction.

Drag a divider to resize a column. Double-click it to fit the heading and the values on the current page within the available table width. Tracked and its filtered views share column widths. Checklist remembers its own widths.

Right-click any column header to show or hide columns in the app list. The menu lists every column in table order. Relf remembers your choices across views and restarts. At least one text column stays visible.

Select Item icon in the column menu to display the icon column before Name. ISO images show a CD icon. For Microsoft Store web installers, Relf looks up the product logo in the background and saves it for offline use. On Windows, Relf reads EXE, MSI, and ZIP icons in the background. If a download recipe specifies the running app’s EXE, Relf tries its icon before the downloaded package. For ZIPs, it tries the extracted app executable, then EXEs inside the archive from the shallowest folder first, then packaged ICO files. For an app without embedded artwork, place a 16 × 16 PNG in the app list’s icons subfolder with the same base filename as its recipe. Other rows use the Relf icon.

Set icon_exe in a download recipe to use the embedded icon from a specific Windows executable. Use a full path, which can contain environment variables such as %LOCALAPPDATA%. Relf tries icon_exe before the running app’s EXE. The Running app EXE setting still controls which process Relf can close during updates.

Select an app in the app list and click Update selected to update that app. The button changes to Cancel while the update runs.

Update all items compares publisher versions, downloads available updates, and repairs missing or damaged files across the app list, including items hidden by the current view or search. If GitHub reports a rate limit, Relf pauses its GitHub checks until the limit resets and continues checking other publishers. For other update errors, Relf retries after 1, 2, and 4 seconds before reporting the final error. The button changes to Cancel while the batch runs. Click it to stop the current operation and skip the remaining items. More → Verify all items checks the app list offline. To stop verification, reopen More and choose Cancel. Use More → Reload after changing recipe files externally.

Double-click an item or press Enter on a selected row to open Edit item on the General tab. Its Item info tab shows the description, category, item ID, versions, source, cache location, and latest result. Right-click the row or press Shift+F10 for Get updates, Verify files, Open app folder, or Edit item. You can also update or verify from Item info. While an update or verification is running or queued for an item, its command changes to Cancel in that item's right-click menu. Choose it to cancel just that item and let the rest of the batch continue. The window reads local manifests on startup and contacts publishers when you request an update.

Right-click an item and choose Install to run its Windows installer. If the installer is missing, Relf fetches it first, reusing a verified cached copy when available. To stop it before launch, right-click the same item and choose Cancel. Install also opens existing local EXE, MSI, MSIX, and AppX files, including MSIX and AppX bundles. For a portable EXE, the same command starts the app.

For a portable ZIP, 7z, or RAR package or a local app folder, Install copies the app into %LOCALAPPDATA%\Programs\<AppName> and creates a shortcut in the current user's Start menu. If there are several candidate executables, choose which one the shortcut opens. Open app folder opens the installed copy after installation. Use Get updates to download a new package. Relf updates a running installed copy automatically. For an app that is closed, use Install to apply the downloaded package.

The app menu shows Close when Relf detects the app is running and can close it. The status row shows progress while Relf waits for the app to exit. If it stays open, Relf asks whether to force it to close. Choose Install separately when you are ready to apply a downloaded update. If the app uses a separate executable from its installer, set Running app EXE (optional) under Edit item → General.

Choose More → Close running apps to review and confirm all running apps that Relf detects in your app list. Relf requests a normal close first and asks separately before force-closing each app that stays open.

If you close the Relf window during an operation, Relf asks you to confirm. It cancels queued work and lets active changes finish in the background. When you reopen Relf, your app list and completed work are still available. Use Get updates again for a download that was canceled before it finished.

Right-click an item to choose how much to delete. Each command asks for confirmation.

  • Delete item removes only the saved entry.
  • Delete item with data deletes the saved entry, the app folder and everything inside it, including settings and unrelated files. For a local file this means its containing folder. For a local folder it means the folder itself. For downloads this also clears the cached releases and release manifests. Review the folder path before confirming.

Use the button at the top of the sidebar to switch to icons only or restore the labels and counts. Hover over an icon for its label.

Open Settings → Language at the bottom of the sidebar. The picker shows native and English names for Arabic, Bengali, Simplified Chinese, Egyptian Arabic, English, French, German, Hindi, Indonesian, Japanese, Nigerian Pidgin, Brazilian Portuguese, Russian, Spanish, Ukrainian, and Urdu. The checkmark shows the current language. Select a language to apply it immediately. Relf remembers your choice the next time you open it. English is the default.

Settings also lets you choose an appearance and a palette. Each palette has a Light and a Dark variant. System switches between them with the Windows app color setting. Choose from OLED mint, Pure carbon, Soft graphite, Blue ink, Warm amber, Slate mint, Orchid, and Rosewood. Changes apply immediately and are saved. The defaults are System and Slate mint.

Use Add item to set up an item from a publisher page or GitHub release. In the General tab, choose a unique Item ID, such as my-tool. Relf uses this ID for the item’s cache and target mapping. If you edit an existing item’s ID here, Relf remembers the old one so downloads and shortcuts keep working.

On the Checklist page, click a row’s checkbox or focus the row and press Space. The header checkbox selects or clears every visible checklist. A dash means some visible rows are checked. Apply selected runs every step in the checked items. Apply all items runs every checklist, including items hidden by search. Cancel lets the current step finish and skips the remaining steps.

Double-click a local setup checklist to open Edit item. In General, edit its name, software folder (when present), step name, description, and PowerShell command. For a multi-step item, use Adjustment to switch between steps. Save stores the edits without running any commands. Open the Checklist tab to review the steps and their results. Click a checkbox or focus a row and press Space to select an adjustment. Use the header checkbox to select or clear all steps. Save remembers the selection. Apply selected in this dialog saves it and runs just those local PowerShell actions in order under your Windows account. The Status column shows the last result recorded by Relf for this user on this PC. Adjustments start as Not applied. A successful run shows Applied, and a failed run shows Error. Multi-step checklists show Partially applied when only some steps have succeeded. If a checklist references tools on disk, Software folder lets you point it to their location on the new PC. Update checks, downloads, and verification skip checklists.

On the General tab, enter an optional Name and Category. Items without a name display their ID. Items without a category appear as Uncategorized. To change the description shown in Item info, edit description in the recipe JSON. Download options lets you specify ZIP members, an archive name, a checksum, and executable settings. Use Save to write your settings and return to the app list.

The window accepts the same --recipes, --dest, and --targets paths as the CLI and uses Tkinter, included in the standard Windows Python installer.

For the command line:

python .\relf.py check --all
python .\relf.py fetch --all
python .\relf.py verify --all

Use one recipe when testing a change.

python .\relf.py fetch .\recipes\my-tool.json
Command Behavior
check Looks up the publisher version and checks the cached files and published file. Matching size and modification time allow a quick check. It hashes files when their metadata differs or an older manifest lacks that metadata. It creates no files.
fetch Resolves the publisher version, verifies existing bytes using SHA-256, downloads when needed, and publishes the primary file. Repairs reuse a verified download from an unfinished publication when available.
verify Works offline. Reads every cached file and the published file, compares their SHA-256 hashes with the saved manifest, and reports any mismatch or pending publication.

Batch mode prints a row per recipe and continues past individual failures. Use --recipes PATH to select another recipe folder. Exit code 0 means the command completed successfully. Batch check returns 2 for an available update, repair, or pending publication. A pending fetch also returns 2. Errors and failed offline verification return 1 and take precedence. Single-recipe check retains its original successful exit status for an ordinary available update or repair.

Where the files go

A recipe with a shortcut name creates a shortcut under the current user's Start menu Programs folder. The shortcut opens the published executable with its folder as the working directory. Verify files reports its condition, and Get updates can recreate it.

Store personal files for each saved item under recipes/companions/<recipe filename without .json>/. Put settings, profiles, instructions, or supporting tools there using the folder layout the app expects. Right-click the item and choose Open app folder to open the folder containing the published working copy.

For items with portable configuration files, select Apply custom settings and click Save. Relf copies the saved settings over the corresponding files in the published app folder, including when offline. If the app has yet to be published, Get updates applies the configs on first publication. While checked, Get updates reapplies changed configs and Verify files reports differences. The checkbox starts off. Clear it and save to keep changes made by the app during future updates.

Relf recognizes top-level .ini, .cfg, .conf, .config, and .toml companion files. Use a recipe’s settings_files list to name the exact portable configs for an item, for example ["Settings/preferences.json"]. The list also supports XML, JSON, YAML, Java properties, and .prefs files. Other companions, such as documentation and restore tools, are copied when missing. Restore tools can be run separately.

For a local restore action, set restore_script to a companion PowerShell filename such as Settings/Restore.ps1. Under Edit item → General, Run restore script after installation is checked by default for items with a restore script or saved portable settings. Install waits for a successful installer exit, then runs the same configured script as the manual button. Items with only portable settings use the built-in file copy after installation. For a portable executable, this happens when the app closes. Clear the checkbox and click Save to skip automatic restoration for that item. Run restore script also lets you start a configured script manually, including for local installers. The General tab shows the script filename. Edit restore script opens that same PowerShell file in Notepad. Save it there to use the changes on the next manual or post-install run. Scripts can read $env:RELEASESHELF_APP_FOLDER for the item’s working folder and $PSScriptRoot for saved settings beside the script. Set restore_as_admin to true for a script that needs elevation. Set manual_files to a list of relative TXT or PDF paths to reveal each manual with Show in folder. Checklist dialogs also provide Open instructions and resolve these paths under their selected Software folder when configured.

When transferring to another PC, copy the whole recipes folder. To carry over newer working settings, copy those files from Open app folder back into the companion folder for that item first. A setup checklist can use a software_folder relative to its recipe directory to take its tools with it.

Relf uses Python’s ZIP reader for selected archive members and Windows tar.exe for full-folder extraction. A full-folder recipe publishes supporting files alongside the executable. When the primary file is a Windows setup command such as Install.cmd, right-click the item and choose Install to run it with its supporting files. User-added files, such as logs, carry over when the folder is replaced. Set extract_folder to . to publish the entire archive from its root.

For ZIPs with selected members, the first member in extract is the primary file unless the recipe names an executable with publish_exe. All selected members are published together in the managed app folder. An explicit single-file target receives the primary file and any personal companions. For archive-only recipes, the archive itself is published.

New installations store downloads in %USERPROFILE%\Downloads\Relf. On upgrade, Relf keeps using an existing Downloads\PortableFetch or Downloads\ReleaseShelf folder, in that order, so shortcuts and target mappings keep working. The previous releaseshelf.py, releaseshelf_ui.pyw, and portable_fetch.py launchers still work.

To set the download folder, open Settings → Download folder → Browse… and select a folder. Restart Relf to use the new location. The CLI reads the same setting from %LOCALAPPDATA%\Relf\destination.txt. Use --dest PATH to override it for a single launch or command. To update an existing portable executable at its usual path, put a machine-local targets.json inside the download folder. For example:

{
  "my-tool": "D:\\PortableTools\\My Tool\\MyTool.exe"
}

Set the value to the actual executable path used by your shortcut. You can also pass --targets PATH to select a settings file explicitly. Custom targets are absolute filenames outside the cache root. A fetch can replace that file. Each recipe owns one target.

To publish to a dedicated app folder with the publisher's original filename, use a target such as D:\PortableTools\My Tool\{filename}. Use this form for full-folder archives. Relf publishes the complete package there and Open app folder opens that folder.

Choose Settings → App folder → Browse… and restart Relf to publish apps without a target mapping into their own folders in a separate library. Existing target mappings still point to the locations specified in targets.json. On the next Get updates, Relf publishes the working files to the selected app folder.

For an ISO download, a target such as D:\Images\Example {version}.iso inserts the publisher version into the saved filename. When a new version is saved, Relf removes the previous ISO for that target if its SHA-256 still matches the manifest.

An update is staged and validated before publication. Relf writes a temporary file alongside the target, verifies it, and atomically replaces the target. After publication succeeds, Relf removes the download for the current version from the cache. Verify files checks the published files against the saved SHA-256 hashes offline. A repair may download the current release again.

Relf downloads and verifies updates before checking whether files can be replaced. It refreshes a separate installer while the installed app stays open. Use Install to run the new installer. If the installer itself is running, Relf keeps the download ready and shows Waiting for the app to close until the installer exits. For portable apps that Relf updates directly, it asks the app to close and reopens it after applying the update. If you select Close from the app menu, Relf keeps the download ready for Install. Files in use means Windows still has a file or folder open. Relf retries when it becomes available. From the command line, close the program using the file and run fetch again.

Settings → Previous versions to keep per app defaults to 1. Use the up and down arrows or type a number, then click Save. Set it to 0 to clear all cached downloads for an app after a successful fetch, including when the app is already up to date. If your App folder is on Google Drive, the published files are stored there through Google Drive for desktop. If a new version changes the published filename, Relf removes the previous managed file when its contents still match the saved checksum.

Older ReleaseShelf manifests are supported. The first fetch with the same recipe and publisher version verifies the saved release and creates the published file. Fetch reports Updated when it downloads a fresh copy, Cached when it uses a verified saved copy to finish publication, and Latest when the files already match.

Write a recipe

Set shortcut to a Start menu shortcut name, without the .lnk extension, to link to the recipe's primary executable. For a complete app inside an archive folder, set extract_folder to the folder name (it can include {version}) and list the primary executable first in extract. All files below that folder are published together. Complete-folder recipes use their managed app directory. Custom target mappings apply to single-file publications.

For a publisher page, select Add item → Source → Publisher page and choose a unique item ID. If you change an existing recipe’s id by hand, keep its former IDs in the previous_ids array. Set the HTTPS page, a version_pattern with one capture group, and the HTTPS download URL. Use filename for a fixed archive name and extract for selected top-level ZIP members in publication order.

Publisher recipes can use {version} in the download path, query, or archive filename. An optional sha256_pattern with one capture group reads the expected SHA-256 from the same release page. Relf verifies that digest before publishing the download. The optional Windows ISO resolver checks Microsoft's release and English x64 checksum during Get updates. For a Microsoft-hosted ISO, Relf verifies the signature of the Fido PowerShell script before using it to request a fresh download link.

A local Windows 11 recipe can specify iso_mirror with url and sha256 fields. Relf tries that URL only while Microsoft lists the same SHA-256 for the English x64 ISO. It verifies the downloaded image against Microsoft's checksum before publishing it and uses the Microsoft link resolver if the mirror cannot be reached or Microsoft lists a different image.

For a public GitHub repository with release assets, use this recipe shape and substitute the repository and its asset pattern:

{
  "id": "my-tool",
  "github": "OWNER/REPOSITORY",
  "asset_pattern": "MyTool-*-windows-x64.zip",
  "extract": ["MyTool.exe"]
}

New GitHub items created in the item editor start with Include all prereleases selected. Existing items keep their saved channel and use Stable only if they have no channel saved. In Edit item → Source, use Release channel to choose which releases to follow. Find releases lists versions and matching downloads for that channel with the newest versions first. The app list search also matches installed and available version strings.

For a GitHub recipe, set release_channel to all, preview, alpha, beta, or rc to opt in. Omit it or use stable to follow stable releases. The app and CLI use the same saved setting. Relf selects the newest eligible version with a matching asset for an opted-in item. A stable 2.1.0 supersedes 2.1.0-beta.10. Switching to a channel with an older version keeps the installed version and stops queued versions outside the new channel from publishing.

Relf matches asset names using a case-sensitive glob and requires exactly one match on the selected release. It shows the candidate names when selection fails. The downloaded archive keeps the author's filename by default. For versioned archive-only downloads, a local target mapping gives the published copy a fixed path.

For non-GitHub previews, use the publisher's dedicated preview page or download URL. Set the version pattern or direct-download version source to capture the full preview label, including its suffix. If the publisher page also supplies a checksum, use a pattern that reads it from the same release.

For GitHub branch ZIPs, Get updates and Update all items also check the repository’s latest published release. Until the first release, the entry keeps its existing branch version. Once a release appears, Relf shows its tag and downloads the source ZIP pinned to the tagged commit. This works for direct branch ZIP links and for publisher entries that read a branch’s commit from the GitHub API and download that repository’s ZIP.

A recipe may include a hex sha256 to pin an expected archive digest. GitHub's asset SHA-256 is checked automatically when available. For a Windows EXE inside a ZIP, set product_version to its member name to compare its embedded ProductVersion string with the publisher version before publication. A leading lowercase v in the publisher tag is ignored. The publish_exe field also checks ProductVersion and publishes the named EXE under bin.

Relf skips older publisher releases when it has a newer comparable version in its records. Before replacing a Windows executable, it also compares the staged and installed ProductVersion when both are readable and comparable. These checks apply to downloads, cached repairs, and updates resumed after the app closes.

Choose Local file or folder to add an existing path. Relf reports missing paths on reload and skips these items during batch checks and downloads. Open app folder opens the local folder or the file's containing folder. A local_path can use environment variables or a path relative to the recipe.

Choose WinGet package in the Source tab and enter the Package ID, such as 7zip.7zip. Relf uses WinGet from Windows App Installer to look up the exact ID in the WinGet community catalog and select an installer for your PC. Get updates downloads the installer to Relf's app folder and verifies it using the catalog's SHA-256. Install runs the local installer and downloads it first if needed. A recipe uses "winget": "7zip.7zip". Use Archive filename in Download options if the download URL does not provide a usable filename.

For a stable installer URL with a reliable HTTP Last-Modified header, choose Direct download. The optional Version source field accepts file_version for the executable's Windows file version, qt_installer for the embedded Qt installer package version, or url: followed by a regular expression with one capture group for a version in the final download path. A release label paired with a pinned archive SHA-256 lets Relf check the installed release without a network request. Downloads still have to match the pinned checksum. Relf checks installer metadata using HTTP range requests. If the server sends the full installer, Relf can read the version from responses up to 32 MiB. Relf detects replacements with the same version when their modification time changes. Leave the field blank to use the UTC modification time as the version. For a publisher page that lists a version and a separate build number, a second capture group named asset in version_pattern supplies {asset} in the download URL. The archive filename and extraction folder can also include {asset} when the publisher uses that identifier in the package.

Versioning and builds

Set the Relf version in shelf_version.py before each release. Use MAJOR.MINOR.PATCH and bump the major number for breaking changes, the minor number for compatible features, or the patch number for compatible fixes. Reset lower numbers to zero when the major or minor number increases.

On Windows with PyInstaller installed, run python -m pip install -r requirements.txt, then run python -m PyInstaller Relf.spec to build dist\Relf.exe. The footer, publisher request headers, and Windows file properties all read the same release version.

Run the tests

$tests = Start-Job -ArgumentList (Get-Location).Path -ScriptBlock {
    param($project)
    Set-Location -LiteralPath $project
    python run_tests.py 2>&1
    if ($LASTEXITCODE -ne 0) { throw "Tests exited with code $LASTEXITCODE" }
}

Use Receive-Job $tests -Wait to read the results. On Windows, run_tests.py puts the GUI tests on a private desktop. It accepts standard unittest arguments for targeted runs.

The default suite supplies publisher responses at the HTTP boundary. It exercises the CLI, real filesystem writes, Windows executable metadata and Windows file locking. On a host that permits loopback connections, set RELEASESHELF_HTTP_TEST=1 to exercise local HTTP and CLI subprocesses.

License

Relf’s original code is available under the MIT License. The bundled Lucide and Feather icons carry their ISC and MIT notices.

About

Portable Windows app for tracking releases, updating and installing software, and verifying downloads. Relf checks for its own updates automatically.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages