Skip to content
notuxiusPublic

About

A portable Windows app for tracking, updating, and verifying your own software catalog.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 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 GitHub Releases when the first Relf release is available. Earlier releases contain ReleaseShelf.exe. 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 for a new Relf release when it opens and every 24 hours while it stays open. Click the refresh icon beside the version number in the bottom status row or choose More → Check for Relf updates to recheck GitHub and see the latest version. Relf downloads and verifies an available update in the background before showing Relf update available in the bottom status row. Click that notice to open the install window immediately. If GitHub rate-limits the check, Relf can still download and verify the last checked release when it’s newer than the installed version. The window shows Update and restart only when an update is ready. Relf keeps your app list and settings and restores the previous executable if the updated window fails to open.

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 or Show item icons in Options 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. 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.

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.

The menu shows Close and Install when Relf detects a running instance of the item's executable. If the installed app uses a separate executable from its installer, set Running app EXE (optional) under Edit item → General. Relf asks the app to close and continues once all matching instances exit. If the app stays open, exit it using its own menu and try again.

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 Options → 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.

Options 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. A damaged or missing published file can be repaired from a verified cached release.
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. If a shortcut is missing or changed, Get updates can recreate it from a verified local release. Verify files reports its condition.

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. 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. The original archive stays in the release cache. 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 Options → 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.

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. When an open app blocks the update, Relf shows Waiting for the app to close and keeps the verified download. The desktop app resumes the update from its cache after the app closes, including after you reopen Relf. From the command line, close the app and run fetch again. A manual fetch checks the publisher again. After a successful fetch, Relf keeps only the current release in releases and removes the previous app folder backup. Fetching an up-to-date item also clears its older cached releases. 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"]
}

Relf reads the latest release, matches the asset name using a case-sensitive glob, and requires exactly one match. 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 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.

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 can also be used with a pinned archive SHA-256. 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 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.

About

A portable Windows app for tracking, updating, and verifying your own software catalog.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages