Changelog
All notable changes to NAPT (Not a Pkg Tool) will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
Added
napt upstream checkandupdate- Find out which pinned copies changed upstream and take the changes.checkreports each recipe asunchanged,changed,missing, ormodified-locallywithout writing anything (--exit-codefails the run on drift,--format jsoncarries the old and new pins for a PR body).updaterewrites each changed pinned copy from the upstream recipe and records its new commit; pass overrides or pinned copies to refresh one recipe at a time, so CI can open one pull request per recipe. Overrides are never touched; a pinned copy edited by hand is left alone unless--forceoverwrites it-
napt upstream addandremove- Import recipes from any git repository.addwrites a pinned copy of each recipe, byte-identical, underupstream/<host>/<repo path>/, writesrecipes/<Vendor>/<app>.override.yamlwithparentpointing at the pinned copy and the recipe'snameandid, and records each recipe's commit and hashes inupstream.yaml. Imports a file or a whole directory (--excludeglobs,--dry-run; re-running a directory import skips recipes already imported), pins a branch or tag with--ref, and takes--destand--id. Only app-owned keys from an upstream recipe reach the merge; tenant policy stays withorg.yaml. Nothing is written unless every recipe validates.removedeletes the pinned copy and its entry, keeping the override unless--delete-override. Requiresgiton PATH -
Recommended
idform -napt validatewarns when anidis outside<vendor>-<app>[-<variant>]in lowercase letters, digits, and single hyphens (google-chrome,7zip-x64-msi). Existing ids keep working; the convention keeps ids from different recipe repositories from colliding and reads the same everywhere
Changed
-
Sample recipe ids follow the convention -
napt-chromeis nowgoogle-chrome,napt-gitisgit, and so on in the repository's recipes and docs. A project that copied a sample keeps its own id; changing anidcreates a new app in NAPT's state and in Intune -
upstreamis a reserved directory name for parent recipes - Aparentunder a directory namedupstream(any case) is treated as a pinned copy written bynapt upstream add: it must be listed inupstream.yamlwith a matching hash, only its app-owned keys are merged (a visible line names any key that was ignored), and the pinned copy cannot be run directly. Keep local parents elsewhere, such asrecipe-bases/
Fixed
- Corrupt icon frames are no longer extracted.
napt buildnow checks every chunk and checksum of a PNG frame before using it, so an installer that ships a broken frame (Zoom's MSI declares a 256px icon with a height of zero) falls through to the next source instead of sending Intune an unusable icon url_downloadno longer re-downloads from servers that ignore conditional requests. A200that repeats theETag(orLast-Modified) NAPT sent is treated as304 Not Modified; the connection is closed before the body is read
0.12.0 - 2026-10-05
Added
secretssection indefaults/org.yaml- Declares the environment variables a recipe may send with its discovery request and the hosts each may go to. Only org.yaml can declare them: a vendor file, parent recipe, or recipe that tries fails validation, so a pinned copy can neither reach the runner's other secrets nor send a declared one somewhere elsenapt validatechecks a directory - Every recipe under it is validated, and two files that resolve to the same id are reported, the same checknapt promotemakesnapt uploadtakes--state-dirand--packages-dir- The same overridesnapt packagetakes, so an upload can follow a package run that used them instead of reading the configured directories
Changed
- BREAKING: One cache root,
directories.cache- Replacespsadt.cache_dir.napt buildkeeps PSADT releases under<cache>/psadt/<version>/andnapt packagekeepsIntuneWinAppUtil.exeunder<cache>/intunewin/<version>/(it was the fixedcache/tools/). The default root iscache, so a project that never setpsadt.cache_dironly sees the tool download once more into the new folder; delete the oldcache/tools/by hand. A project that setpsadt.cache_dirmoves the value todirectories.cache(without the/psadtsuffix); the old key is reported as unknown bynapt validate napt initshows every default - Thedefaults/org.yamltemplate now lists all sevenpsadt.app_varsNAPT sets, so the file shows every setting an organization can overridenapt statusreadsdirectories.statefrom configuration - Like every other command, instead of a fixedstatedirectory, so it summarizes the state the pipeline wrote to. It takes an optional recipe file or directory (defaultrecipes/) to read the setting from;--state-dirstill overrides it- Commands that never talk to a tenant start faster -
validate,discover,build,package,init, andstatusno longer load the Azure authentication libraries at startup; onlyupload,promote, andauthdo - Ctrl-C ends a command cleanly - Exit code 130 and an
Interrupted.line instead of a traceback - Warnings are tagged - A warning in the log prints as
[PREFIX] WARNING: message; it used to look exactly like an info line - Result output drops lines that never changed -
napt validateno longer printsApp Count(always 1 for a valid recipe), anddiscover,build,package, anduploadno longer printStatus: success(a failure is an error, not a result) - Configuration loads do less work - Every command used to serialize
each configuration layer to YAML text on every load so a debug logger
could discard it; the dumps are now built only under
-d - Log lines use one prefix per stage or domain - Validation logs under
CONFIGinstead ofVALIDATION; reusing a cached PSADT release, replacing an earlier build, and backing up org.yaml oninit --forceare reported at the same level as their counterparts - BREAKING: A missing brand pack folder fails the build - A configured
psadt.brand_pack.paththat does not exist used to be skipped with a verbose-only note, so a typo shipped a package with PSADT's default assets.napt buildnow stops and names the path napt buildchecks the recipe before touching the build folder - An EXE recipe missingdisplay_name,architecture, or its install commands used to fail after that version's build folder had been cleared and PSADT copied in; every such check now runs before anything is written- One metadata read per MSI build - The MSI was opened twice (once for its version, once for its architecture), and the detection settings were resolved once per generated script, so each "will be ignored" warning printed twice. Both now happen once
- Installer problems are reported as build errors - An MSI for an unsupported platform, an MSIX for an unsupported architecture, or an MSI with no ProductName are faults in the installer, and are now reported as such rather than as configuration errors. A machine with no way to read an MSI (no PowerShell on Windows, no msitools elsewhere) gets the same kind of error instead of a traceback
- BREAKING:
napt packagekeeps other versions' packages - The previous version's package folder used to be deleted before the new one was made (and before the packaging tool was even fetched), so a failed run left the app with no package. NAPT now never deletes another version's files:packagereplaces only the folder of the version it is packaging.--clean-sourceis removed for the same reason; delete build folders yourself when you want them gone - BREAKING:
napt packageandnapt uploadresolve the release from deployment state - Both used to take the most recently modified folder. They now package and upload the build and package of the release deployment state records (pending, else published), the same releasenapt buildbuilds. With no recorded release, the only build or package is used; several then need--version(package) or a recorded release (upload).napt packagegains--state-dir, likenapt build - Tool downloads are verified - The PSADT archive is checked against
the digest the release publishes (its size for releases before the 4.1
line, which have no digest), and
IntuneWinAppUtil.exeagainst the size and hash the repository reports for it, before either is cached. A release whose archive lacks the Template_v4 entries NAPT builds from is refused with each missing entry named - Every step verifies the one before it -
napt packagere-hashes the installer inside the build against the build manifest and against the recorded release, and records the.intunewinhash in the package's manifest;napt uploadre-hashes the.intunewinagainst that record and reads the script names from the manifest instead of taking the first matching file - BREAKING: Header secrets must be declared and bound to a host - A
${VAR}indiscovery.headersnow expands only whendefaults/org.yamldeclaresVARundersecretswith theapi_urlhost among its hosts, and the URL must use https. The same applies to theapi_githubtoken, whose host isapi.github.com. Declare each variable your recipes use with its host - BREAKING:
${VAR}expands anywhere in a value -Bearer ${API_TOKEN}now sends the token with its scheme. A variable that held the whole header value (API_AUTH_HEADER="Bearer <token>") keeps working as"${API_AUTH_HEADER}"once declared - BREAKING: An unset
${VAR}stops discovery - The header used to be dropped (or theapi_githubrequest sent unauthenticated) with a verbose-only note; a missing secret is now an error naming the variable napt validatechecks the effective configuration - The merge of org.yaml, vendor defaults, parent, and recipe that every other command loads, so an error in any layer is reported before a pipeline runs into it- A discovery request that carries a secret follows redirects only to the hosts the secret is bound to
- Reference publish workflow continues past a failing app - One app's
failed build, package, or upload (or a vendor no longer serving its
approved installer) used to end the loop, skip every app after it,
and skip the writeback, so an app uploaded earlier in the same run had
its Intune app IDs recorded nowhere. The workflow in the docs now
records the failure, publishes the remaining apps, always runs the
writeback, and fails the run at the end with the failed apps named.
The publish and apply workflows also gain
workflow_dispatch, since re-running a failed job checks out the old commit - Reference workflows scan
.ymlrecipes too, matchingnapt promote napt validatechecks every section against its schema - Field types, allowed values, and integer bounds are checked in every section, includingpsadt,directories, andintunewin, which had no checks.intune.max_run_time_minutesmust be 1 to 1440 (Intune's limit) andlogging.log_rotation_mbat least 1; a YAML boolean no longer passes as an integer;psadt.brand_packand each of its mappings must have the documented shape, and a mapping target must stay inside the build. A key that is not a string is an error instead of a traceback. An unknown key anywhere, including the top level and thediscoverysection, is a warning that names the closest known key, and the same typo always gets the same hint- One GitHub client for discovery and the tool downloads - The
api_githubstrategy, the PSADT download, and the IntuneWinAppUtil download share one request path, so a rate limit, a missing release, or a bad response reads the same fromnapt discover,napt build, andnapt package, and a rate limit is reported only when GitHub says the limit is the cause. Every lookup sends one authorization scheme. A release tag is read by one rule for both tools: a leadingvis accepted and any number of version parts, but never a suffix.psadt.releaseandintunewin.releaseaccept a leadingvalike - PSADT release without a Template_v4 archive is refused before download. The fallback that downloaded any PSADT zip is gone, since the layout check refused the result anyway
-
The PSADT cache check matches the download check - A cache entry holding only the module manifest is downloaded again instead of being built from
-
BREAKING:
api_jsonpaths are dotted paths -version_pathanddownload_url_pathare keys separated by dots, with[n]for a list entry (data.version,builds[0].url). JSONPath operators such as wildcards and filters are no longer accepted; every documented example already used the dotted form. The value atversion_pathmust be a string or number and the value atdownload_url_patha non-empty string, so a null in the response is reported by path instead of becoming the URLNone - BREAKING:
web_scraperefuseslink_selectorandlink_patterntogether - The selector used to win silently; a recipe that sets both now fails validation -
Strategy validation is stricter - A
version_formatthat is malformed or names a field, and an emptyversion_patternin any strategy, are validation errors; each strategy reports a missing or mistyped field in the same form the other sections use (discovery: Missing required field: repo,discovery.repo: Must be a string) -
One Graph session and one retry policy - Every Graph call, every Azure Storage block upload, and the tenant lookup at
napt auth logingo through one pooled connection, so an upload of many blocks reuses its connection instead of opening one per block, and every call uses the beta endpoint. Block uploads honorRetry-Afterthe way Graph calls already did. A 401, 403, or 400 names the call that failed and what Graph answered, without guessing at an Intune role or at app metadata as the cause
Removed
- The
jsonpath-ngdependency - Replaced by the dotted-path reader - BREAKING:
discovery.prerelease- The field never had an effect: the latest-release endpoint never returns a pre-release. A recipe that still sets it gets an unknown-key warning
Fixed
- A corrupt saved sign-in configuration (
auth.jsonunder NAPT's user data folder) is now reported bynapt uploadandnapt auth statuswith the file's path and the remedy, asnapt auth loginandlogoutalready did; they used to read it as "Not authenticated" and point atnapt auth login, which could not fix it - A
web_scraperecipe whosepage_urlpoints at a large file (an installer instead of the download page) is refused as soon as the page size cap is passed, instead of after the whole file was downloaded; the error now says what to check - An MSI whose Template summary property leaves the platform empty builds as x86 on Windows, as the Windows Installer documentation specifies and as a Linux build already did; it used to fail with "Template not found"
- The saved sign-in configuration (
auth.jsonunder NAPT's user data folder) is written in one rename like every other file NAPT persists, so a crash mid-write no longer leaves a half-written file that fails every laternapt authcommand with a corrupt-config error - The sample recipes in this repository live under
recipes/Google/, so the loader looks fordefaults/vendors/Google.yaml. The shipped file wasgoogle.yaml, which matched only where the filesystem ignores case; it is renamed to match the folder - A
defaults/org.yamlor vendor defaults file whose top level was not a mapping (a list, or a stray scalar) was skipped without a word, so the recipe loaded with none of its settings; it is now the same error a recipe gets - The
-ddump headed "Final Merged Configuration" was taken before path resolution and dynamic injection, so it was not the configuration the command used; it now is, andnapt validate --debuglabels the injectedAppScriptDateandRequireAdminvalues ascomputedinstead of reporting them as code defaults - A missing recipe, parent recipe, or recipe path is reported with one wording naming the role and the path
- A PSADT template without the install or uninstall marker made
napt builddrop the recipe's commands silently; it now fails naming the missing marker napt buildsendsGITHUB_TOKENon the PSADT release lookups, as its documentation promised; the calls used to count against the shared unauthenticated limit- Resolving
psadt.release: latestmakes one API call instead of two when the release is not cached - A
napt packagerun killed while writing IntuneWinAppUtil.exe no longer leaves a partial executable that every later run accepts; the file is written beside the cache and moved in only after its size and hash are verified - A PSADT release tagged with a
vprefix resolves and downloads; the lookup used to strip the prefix and then miss the tag - A
web_scraperecipe whoseversion_formatcould not take the captured groups endednapt discoverwith a traceback; it is now reported as a configuration error, and caught atnapt validatefirst - A download that failed in transit (a dropped connection mid-file) is reported as a network error from the downloader itself
napt uploadwithbuild_types: bothdecrypted and extracted the package once per app entry; it now extracts it once, and not at all when both entries are adopted- An app with more than one page of assignments had the later pages dropped when its assignments were read; every page is read now
- The wait for a new app registration to replicate recognized a 404 by searching the error text; it now checks the status itself
- Fixed a PSADT download interrupted part-way leaving a partial toolkit in the cache that every later build accepted, and the toolkit zip left in the cache folder shipping inside every later package. The toolkit is now extracted in a working folder and moved into the cache only once complete
- Fixed a disk-write failure during
napt build(a full disk, a locked file, a read-only path) surfacing as anOSErrortraceback instead of an error naming the path - Fixed an MSIX whose
AppxManifest.xmlis not well-formed XML crashingnapt buildwith a traceback - Fixed a GitHub response that is not JSON crashing the PSADT release lookup with a traceback
- Fixed IntuneWinAppUtil failing to launch (a non-Windows host, a damaged file) surfacing as a traceback instead of a packaging error
- Fixed
napt init --forcefailing on Windows when run a second time, because the earlierorg.yaml.backupwas still there, andnapt initcrashing with a traceback when the target cannot hold the project - Fixed the ARP icon name of an MSI being decoded through the console code page, which mangled non-ASCII product names; it now goes through the same UTF-8 handoff as the MSI metadata
- Fixed
napt buildwith a recorded release accepting any file whose hash matched, including one it cannot build; both lookups now apply the same installer file types - Fixed the PSADT release lookup reading a tag such as
4.1.7-rc1as4.1.7 - Fixed re-packaging a version after a detection script was renamed
leaving the old script beside the new one, with
napt uploadsending whichever sorted first - Fixed
napt uploadtakingbuild_typesfrom the recipe instead of from what was built: a recipe changed after the build committed the install entry, failed on the update entry's missing script, and recorded nothing. The mismatch is now refused before any Graph call - Fixed
napt uploadwithdeployment.require_pendingrefusing a package that matches the published release, which blocked the re-run after a writeback and--force - Fixed a corrupt
build-manifest.jsoncrashingnapt packageandnapt uploadwith a traceback - Fixed the IntuneWinAppUtil release lookup reading a tag such as
v1.8.6-rc1as1.8.6and then failing to download it - Fixed a version-first strategy reusing last run's installer when the download link changed at an unchanged version (a switched asset pattern, a re-published release), which recorded the new link beside the old file's hash. The link, minus its query string, is now part of the check, and a changed link is verified with a conditional request
- Fixed reuse trusting the sidecar's recorded hash. The installer on disk is re-hashed first, and a file that no longer matches is downloaded again
- Fixed a vendor re-releasing a version under the same filename overwriting the installer the published release was built from. The previous file is kept beside the new one with its hash in the name
- Fixed two
napt discoverruns for one app on one machine sharing a download folder, so the second run deleted the first run's partial download. Each run now uses its own folder, and a folder a crashed run left behind is removed after a day - Fixed a version with a part of more than 18 digits being recorded although the device's detection script cannot compare it; discovery now refuses it. Non-ASCII digits no longer count as numbers when versions are compared, matching the device
- Fixed a GitHub API response that is not JSON escaping
napt discoveras a traceback - Fixed a version or link pattern whose optional capture group matched
nothing yielding the version
None(or, forweb_scrape, the text "None"); it is now reported as the pattern not matching - Fixed a
Content-Dispositionfilename encoded in a charset Python does not know aborting the download instead of falling back to the plain filename - Fixed an installer's metadata error (an MSI platform NAPT does not support, missing tooling) being reported as a download failure
- Fixed the Azure Blob SAS signature appearing in the error and log text when an upload's transport failed
- Fixed a rejected service principal credential (an expired client secret in
AZURE_CLIENT_SECRET, or an Azure CLI session whose token request Entra ID refuses) being reported asNot authenticated. The rejection is now reported with Entra ID's message - Fixed recipe patterns running over remote strings of any length. A tag, asset name, version value, or matched link longer than 4096 characters, or a download page larger than 5 MB, now stops discovery with an error
- Fixed a write that fails part-way (a full disk, a killed process) leaving a truncated deployment state file, plan file, or download sidecar that the next command reports as corrupted. Each is now written to a temporary file and renamed into place, so the previous file survives a failed write
- Fixed a hand-edited deployment state file with a section of the wrong
shape (a
pendingentry missing its version, a ring entry without a hash) crashingnapt statusornapt promotewith a traceback. The file is now rejected with a message naming the section - Fixed one plan file that cannot be loaded stopping
napt promote applybefore any app was applied. That app is now reported as failed with its file kept, and the other apps apply - Fixed
napt promote applyandnapt promote plan --check-driftgiven a single recipe file reporting every other NAPT-managed app in the tenant as having no recipe. The unknown-app check now runs only when the command was given a recipes directory
0.11.0 - 2026-09-26
Added
version_patternforapi_jsonrecipes - A regex applied to the value found atversion_path, the same fieldapi_githubandweb_scrapealready have. Use it when the API wraps the version in a prefix or suffix ("v2.0","2.0 (stable)"), which a device would otherwise read as version 0. Without it the API's value is used as is, so existing recipes are unchanged-
Recipe
parentfield - A recipe can name another recipe as its parent and inherit everything it does not set itself. The parent merges between vendor defaults and the recipe, lists replace rather than append, and a parent cannot declare a parent of its own- Name the child
<app>.override.yaml;napt validatewarns when the name and the field disagree and reports the parent it merged
- Name the child
-
Downgrade label - When a vendor replaces a release with a lower version,
napt discoverstill records it as the pending release, and now says so: discover logs a warning,napt statusmarks the app[DOWNGRADE]("pending_is_downgrade": truewith--format json), and the reference discover workflow titles the PRPublish <Name> <version> (downgrade from <published>). Versions are ordered exactly as the detection script on a device orders them. Publishing a downgrade changes what new installs get; devices already on the higher version are left alone
Changed
- BREAKING:
napt promote applyexecutes plan files only - With no plan file instate/plans/, apply used to compute a plan on the spot and apply it. In the reference workflows that was a way around review: a reviewer who held the only pending app by deleting its plan file triggered an apply run that planned the same promotion fresh and executed it. Apply now applies nothing without a plan file and says to runnapt promote plan. Run plan before apply; a publication that apply's reconcile step recovers is promoted by the next plan run rather than in the same apply - BREAKING:
--state-dirmeans the state root for every command -napt discover --state-dir Xwrote state files directly intoX, whilenapt promoteandnapt statusreadX/deployment/andnapt buildhad no such flag, so state written that way was never found andnapt uploadran without its hash check. Discover now writes toX/deployment/like the others, andnapt buildgains--state-dir - A section left empty in a recipe is a validation error -
psadt:,intune:,logging:,deployment:,psadt.app_vars:, orintune.detection:with nothing under it used to crash the loader or load as nothing, silently skipping the values NAPT computes for that section.napt validatenow names the empty key - Reference discover workflow continues past a failing recipe - One
recipe's
napt discoverfailure used to end the loop and silently skip every recipe after it. The workflow in the docs now records the failure, still opens publish PRs for the apps that succeeded, and fails the run at the end with each failed recipe annotated on the run summary - BREAKING: Versions must start with a digit -
napt discoverstops with an error for a version such asv2.0,release-2.0, orlatest. A device compares versions by each part's leading digits, so such a version read as 0 there: every device reported the app installed and none ever upgraded, with no error anywhere. The error names the value aversion_patternshould capture. An MSI or MSIX is judged by its own version, so only EXE recipes whose pattern orapi_jsonvalue keeps a prefix are affected;api_githubalready strips avby default - BREAKING: The installer's own version is the version - For an MSI
or MSIX,
napt discovernow reads the version out of the downloaded file and records that, rather than the value the page or API reported. The download folder, the pending release, the publish PR title, and{{discovered_version}}all carry the same version the detection script will compare on a device, and a file the vendor serves under a newer number than it really is gets recorded as what it really is. The reported value is still the trigger: a run that finds the same value as last time reuses the download without a request. EXE installers are unchanged, since they carry no readable version- An MSI or MSIX app whose reported version differs in format from the
installer's (
4.41.106against4.41.106.0) gets a new download folder name, so it is downloaded once more after upgrading napt buildrefuses an MSI or MSIX whose version differs from the folder it is in, which only happens to a file moved by hand- Discover needs
msitoolson Linux for MSI recipes of every strategy, not onlyurl_download
- An MSI or MSIX app whose reported version differs in format from the
installer's (
url_downloadaccepts MSIX installers - The version is read from the package's Identity, as it already was for MSI ProductVersion- BREAKING: Downloads are filed by version -
napt discoversaves each installer todownloads/{id}/{version}/, matchingbuilds/andpackages/. A vendor that serves every release under one filename can no longer overwrite an installer that is awaiting approval. Installers in the old flatdownloads/{id}/layout are not found; runnapt discoveronce per app to download them again- CI workflows that hash downloads need the two-level path:
sha256sum "downloads/$id/"*/*(reference workflow 2 is updated)
- CI workflows that hash downloads need the two-level path:
- BREAKING:
napt buildfinds the installer by its recorded hash - Build reads the release to build from deployment state (the pending release, or the published one when nothing is pending), looks in that version's download folder, and takes the file whose SHA-256 matches. A file that was swapped or corrupted since discovery now stops the build instead of being packaged. Guessing the file from URLs and app names is removed- With no recorded release (
napt discover --statelessand no state), build uses the single installer found in a version folder (downloads/{id}/{version}/) and stops if there is more than one. A file placed directly indownloads/{id}/is not found
- With no recorded release (
- BREAKING: The discovery cache is removed -
cache/discovery.json, thenapt discover --cache-fileflag, and thedirectories.cachesetting are gone.napt discoverdecides whether to download from the downloads folder alone: a version whose folder already holds the installer is not fetched again, andurl_downloadrecipes keep the server'sETagindownloads/{id}/.download.json. Deletecache/discovery.json, drop--cache-filefrom scripts, and cache onlydownloadsin CI (the reference workflows are updated)--statelessnow means only "do not read or write deployment state"; installers already in the downloads folder are still reused
- BREAKING: Recipe
idmust be a plain folder name -napt validatenow rejects anidcontaining anything other than letters, digits,.,-,_, and+, or one that does not start with a letter or digit. Rename anyidthat uses spaces, slashes, or other characters - BREAKING: Discovered versions must be plain folder names - The same
character rule applies to a version, because it names the build folder.
napt discoverandnapt buildstop with an error for a version such as2.0 (x64). Tighten the recipe'sversion_patternso it captures only2.0; detection compares just the numeric parts, so nothing is lost.psadt.releaseandintunewin.releasefollow the rule too
Fixed
- Fixed the shipped Git and VS Code recipes naming an installer file that is
not in the package (
Git-<version>-64-bit.exewhere the vendor's file isGit-<version>.<build>-64-bit.exe), so the install failed on every device. Both now use{{installer_filename}} - Fixed the shipped
defaults/vendors/google.yamlnever applying: its content sat under adefaults:key that the loader does not read - Fixed
poetry installcreating the virtual environment outside the project on a machine without a user-level Poetry setting, so the quick start's activation step failed. Apoetry.tomlnow keeps it in.venv - Fixed retention deleting the wrong release after a rollback. A release that had been rolled back to kept its old place at the head of the retained list, so when the next release displaced it, retention deleted it (the release just in production) and kept the one it had been rolled back from. A displaced release now becomes the newest retained entry, and publishing a release removes it from the retained list
- Fixed
napt promote applygiven one recipe deleting every other app's reviewed plan file. Their actions were skipped as having no recipe in the run, which counted as applied, so the files were consumed and the next fleet-wide apply planned and applied those apps without review. Apply now loads only the plan files of the recipes it was given;--plan-filenaming an app outside the run is an error - Fixed the drift check after
napt promote applyreporting the Intune entries that retention had just deleted as orphaned releases, two false findings for every retired release - Fixed two recipe files with the same
id(a child that inherits its parent's id with the parent in the same directory, or a copy-pasted id) being planned twice and then applied with whichever file sorted last.napt promotenow stops with an error naming both files - Fixed a Microsoft Graph failure while
napt promote applyresolved one app's groups aborting the whole run: the remaining apps were never applied and the drift check never ran. The failure now fails that app only, with its plan kept for retry; a rejected token still stops the run - Fixed a hand-edited plan file whose actions lack a field or have the
wrong shape crashing
napt promote applywith a raw traceback; it now reports the action and the field and says to re-runnapt promote plan. A plan file whose name andapp_iddisagree is rejected the same way deployment state is, and--plan-filenaming a file that does not exist is an error message rather than a traceback - Fixed a deployment state file that could not be written after
napt promote applyhad already changed Intune (locked file, permissions, full disk) aborting the run with a traceback and no record of which app was left out of sync. The app is now reported as failed with the file named and the note that Intune was updated, its plan is kept, and re-running apply repeats the action safely - Fixed a child recipe that sets a section its parent also sets (the
documented base-recipe case, such as
discovery.urlunder a parent that setsdiscovery.strategy) crashing every command with aTypeError, whilenapt validatereported VALID - Fixed a backslash in a
psadt.app_varsvalue corrupting the generated deployment script:Contoso\1Toolswas written asContoso$adtSession = @{Tools, and some values crashed the build - Fixed group and app names containing
&or#never resolving in Microsoft Graph, sonapt promotecould not assign to a group namedR&D #1 Team - Fixed a recipe path that is a folder, or a recipe saved as UTF-16 (the
PowerShell
Out-Filedefault), producing a raw traceback instead of a message naming the file; innapt promoteone such file aborted every app - Fixed
napt validate --debughiding a failure to merge the recipe behind VALID with no provenance block; it now prints the reason - Fixed the "Unknown discovery strategy" hint omitting
url_download - Fixed three Microsoft Graph error messages crashing with
UnicodeEncodeErroron a cp437 console (a plaincmd.exewindow), replacing the real permissions or metadata error with a traceback - Fixed non-ASCII MSI product names being read through the wrong code page
on Windows, so a name such as
Café Office™was recorded asCaf‚ OfficeT. The detection script and the uninstall command then looked for a name that never matched on devices, with no error at build time; some names crashed the build instead.napt buildnow reads the name exactly as the MSI stores it - Fixed a line break in an app name (an MSI
ProductName, an MSIXDisplayName, orintune.detection.display_name) ending the comment on the first line of the generated detection and requirements scripts, so that whatever followed the break would run as code on devices; on a Windows build host the same name crashed the build instead, because the script filename kept the line break. Control characters in a name are now replaced with a space, with a warning - Fixed a wrong first download never being corrected. When a vendor's page
or API announced a new version before the file behind the link changed,
napt discoverfiled the old file and then, since the page kept reporting the same version, never looked again. Discover now trusts a repeated version only if it matched the installer's own version last time; otherwise it warns on every run and asks the server whether the file changed (a full download when the server sends noETag), until the two agree - Fixed
napt discoverlabelling the installer it already had with an older version number when a vendor rolled a release back. Withapi_github,api_json, andweb_scraperecipes, the older version was treated as "not newer", so the newer installer was reused under the older version and recorded as the pending release. Each version now has its own download, so the older release is fetched and recorded as itself - Fixed
url_downloadrecipes making a wasted request when the savedETagoutlived the installer it described: the server answered "not modified", and NAPT then had to request the file a second time. TheETagis now sent only while that installer is on disk - Fixed a server's
ETagbeing ignored when it sent the header name in lowercase - Fixed a download server being able to choose where a file is saved. A
filename such as
..\..\evil.exein theContent-Dispositionheader (or its percent-encoded form) was joined onto the download folder as-is. Only the final part of the name is kept now - Fixed characters in a downloaded file's name running as code when a recipe
uses
{{installer_filename}}inside a quoted PowerShell string.$,;, backticks, and quote characters in the name are replaced with_, with a warning showing the original and saved names - Fixed a version string containing
..or a path separator pointingnapt buildat a folder outsidebuilds/, where a rebuild would delete it (closed by the version rule under Changed) - Fixed typographic quotes (such as
’and”) in an app name, MSI ProductName, MSIX identity,psadt.app_varsvalue, or installer path ending a PowerShell string early, which let the rest of the value run as code in the generated deployment, detection, and requirements scripts and in the MSI metadata commands NAPT runs during a build - Fixed the auto-generated MSI and MSIX install and uninstall commands
embedding the installer filename and MSIX identity without escaping, so a
$(...)or quote in a downloaded file's name could run as code. The commands now single-quote both values (MSIX installs build the path withJoin-Path) - Fixed detection and requirements scripts being written without a UTF-8 byte order mark. Windows PowerShell 5.1, which Intune uses to run them, read such files as the ANSI code page, so an app name with a non-ASCII character never matched the installed app, and some accented letters decoded to a quote character that ended the string early. All generated scripts now carry a BOM, as Microsoft recommends for Win32 detection scripts
0.10.0 - 2026-09-12
Added
napt auth setup- Create the NAPT app registration in a tenant without touching the portal: signs in as an administrator, then creates (or completes) the registration with its redirect URIs, application and delegated Graph permissions, service principal, and admin consent--federated-issuer/--federated-subject(plus optional--federated-audienceand--federated-name) also add a federated credential for OIDC-based CI/CD, so no client secret is needed; the values come from your CI platform's OIDC documentation- Stamps the registration's internal notes with
napt/v1 spec=<n> version=<napt version> provisioned=<date>; admin notes below the stamp are preserved - Safe to re-run: compares the registration against what the installed
NAPT needs and adds only what is missing, so updating after a NAPT
release is the same command.
--nameand--client-idtarget an existing registration - A name match without a NAPT stamp is reported and left untouched
until
--adoptis given; nothing existing is ever removed --print-onlyprints the equivalent portal checklist for tenants where the automated path is not allowed
napt auth login/status/logout- Sign in to Microsoft Graph once and let every later command authenticate silentlyloginopens the Windows account picker (Web Account Manager) when available, otherwise the browser;--no-brokerforces the browser- The client and tenant IDs given to the first
loginare remembered;AZURE_*environment variables are for CI/CD credentials only and no longer configure interactive sign-in statusshows which credential NAPT would use, the account, tenant, expiry, and Graph permissions it carries, and exits 1 naming any required permission that is missing- Multiple tenants are remembered;
login --tenant-id <id>switches between signed-in tenants without a prompt, andlogout --allclears them all - Tokens are cached in the OS credential store (DPAPI, Keychain, libsecret), never in plain files
- OIDC federation for CI/CD - An Azure CLI session signed in as a
service principal (what OIDC login steps such as GitHub Actions
azure/loginleave behind) is now honored, so pipelines can run without a client secret. This is the recommended CI/CD setup. A CLI signed in as a person is refused so Intune activity is always attributed to the NAPT registration
Changed
napt buildfails early for EXE recipes without scripts - An EXE installer whose recipe lackspsadt.installorpsadt.uninstallnow stops the build with a clear error instead of producing a package with empty install and uninstall sections- BREAKING:
logging.log_formatandlogging.log_levelrecipe fields removed - The fields never had any effect: generated detection and requirements scripts always log in CMTrace format and always log every message. Remove them from recipes anddefaults/org.yaml(leftovers produce an unknown-field warning fromnapt validate);logging.log_rotation_mbis unchanged and still works - BREAKING: Device code flow removed - Interactive sign-in is now
napt auth login(authorization code + PKCE, or the OS broker). Device code is the flow most often abused to bypass MFA and is increasingly blocked by Microsoft-managed Conditional Access policies- App registrations need the
http://localhostandms-appx-web://Microsoft.AAD.BrokerPlugin/<client-id>redirect URIs under Mobile and desktop applications - "Allow public client flows" is no longer needed; registrations set to Yes for earlier NAPT versions can go back to the default No, which blocks device code against the app
napt uploadandnapt promotenever open a browser; without a credential they fail withNot authenticated.and a hint to runnapt auth login
- App registrations need the
- BREAKING: Managed identity removed -
ManagedIdentityCredentialis no longer tried; use a service principal or OIDC federation - Removed the unused
--tenant-idoption fromnapt upload
Fixed
napt uploadnow honorsdirectories.packageinstead of always looking inpackages/, so a custom package directory indefaults/org.yamlno longer breaks upload with "No package found"
0.9.0 - 2026-07-20
Changed
- BREAKING: Per-app promotion plans -
napt promote plannow writes one plan file per app (state/plans/<app-id>.json) instead of a single batchedstate/plan.json, andnapt promote applyconsumes each file independently- One app's failure (unresolvable group, Graph error) keeps its plan file for retry and no longer blocks the other apps' promotions; failed apps are reported and fail the run after the others apply
- To hold one app's promotions during review, delete its plan file; no more hand-editing action entries inside a shared JSON
- Plan actions now carry reviewer context: the app's display name, and for ring advancement, when the release entered the ring it is leaving and that ring's bake threshold
- The reference workflows in Common Tasks watch
state/plans/**
- BREAKING: Plan files read at a glance - Every planned action now
opens with a plain-English
summarysentence and names the Intuneentryit touches (installorupdate) and the version itdisplaces; the app's id and display name appear once at the top of the file, and keys follow reading order instead of alphabetical- The action vocabulary now matches the feature:
promotemoves a release one ring forward (from_ring: nullmarks a first rollout) andassignpoints new installs at it, replacingenter_ring,advance_ring, andassign_install displacesmeans the older release loses the assignment but stays in Intune for rollback perdeployment.retain_versions; NAPT never uses Intune's Win32 supersedence featurenapt promote planandapplyprint the same summary sentences, so console output and plan files never disagree
- The action vocabulary now matches the feature:
- BREAKING: Deployment state files read at a glance -
state/deployment/<app-id>.jsonnow reads top-to-bottom as the publish PR's review recorddeployedis renamedpublished: publishing uploads a release to Intune without assigning it, andnapt promotedeploys it through the rings afterwards- Each file names its app once at the top:
app_id(stamped from the filename; a copied or renamed state file is now rejected) and the recipe's displayname, refreshed on every save - Keys follow reading order (lifecycle order at the top level,
versionfirst and hashes last inside blocks) instead of alphabetical
- Reviewer-friendly GitOps PRs - The reference workflows in Common
Tasks now generate the review surface instead of one-line PRs
- Publish PRs are titled
Publish <Name> <version>with a fact sheet body: version, currently published version, installer URL, SHA-256, what merging does, and how to hold or reject - The promotion PR body opens with a risk line
(
**This plan:** 2 to pilot, 1 to production), lists every app's plan action summaries, embeds the plan run's drift warnings, and carries apromotes-to-productionlabel when the final ring is targeted - Titles and bodies regenerate on every refresh, so a superseding release never leaves a stale decision under review
- The promotion PR branch is now
napt/promote-plan, matching thenapt promote plancommand
- Publish PRs are titled
- Graph API calls retry transient failures - Throttling (HTTP
429/503/509, honoring Retry-After) and transient server or
connection errors now retry with bounded exponential backoff across
upload, promotion, and drift operations, so a momentary Graph hiccup
no longer fails a publish or marks an app's promotion as failed
- Resource-creating calls retry only unambiguous throttling responses, so a reply lost after a processed create can never duplicate an Intune app; re-running converges via upload's stamp adoption
- Every Graph request carries a
client-request-idfor Microsoft support correlation - All remaining HTTP calls (GitHub release lookups for PSADT,
IntuneWinAppUtil, and
api_githubdiscovery; vendor page and API fetches forweb_scrapeandapi_json; and tool downloads) now share the installer download layer's retrying session instead of being single-shot
0.8.0 - 2026-07-12
Added
- Plan group validation - Every group named in a promotion plan is
now resolved against Entra ID before anything can act on it:
authenticated
napt promote planruns (--check-driftor--reconcile) fail without writing a plan when a group does not resolve, so a broken plan never becomes a reviewable promotion PR, andnapt promote applypreflights every action it would execute before executing any, so an unresolvable group aborts with zero tenant mutations instead of stranding a half-applied plan (a dead group referenced only by stale or already-applied actions never blocks a run). Offline plans (no flags) skip validation and warn when they produce actions; the apply preflight is their backstop - Publication recovery -
napt promote apply(always) andnapt promote plan --reconcile(opt-in) record publications that are fully committed in Intune but whose deployment state writeback was lost (e.g. a CI runner uploaded successfully, then failed to push the state commit). Recovery uses the same provenance-stamp evidence as idempotent upload adoption, requires every entry of the release to have committed content, and makes the recovered release promotable in the same run. Partially published releases are warned about instead; re-runnapt uploadto finish them
Changed
- Drift findings state what NAPT knows, not what it guesses - An
assignment NAPT has no record of making is now classified by
evidence:
unrecorded_assignmentwhen it matches a currently configured target (either a lost apply writeback, which a later apply converges, or an admin pre-empting configured policy) andunexpected_assignmentwhen it matches no configured target. The oldunexpected_assignmentmessage asserted "was not made by NAPT", which drift cannot actually know: Intune assignments carry no authorship, so state records are the only memory
Fixed
- Fixed three defects in the reference GitHub Actions workflows: the
publishandpromote-applywriteback pushes now rebase and retry instead of failing whenmainadvanced mid-run; the two workflows no longer share a concurrency group, which cancelled one of them when a single merge triggered both; andpublishnow fails fast with a clear error when the vendor no longer serves an approved installer, instead of failing minutes later at the upload hash gate - Fixed
napt uploadfailing with HTTP 400 (The mobile app content cannot be updated before the first content version is committed) when re-running after a crash between app creation and content commit. Such orphaned app records are now deleted and recreated, since Intune cannot resume them in place. - Fixed
napt uploadfailing intermittently with HTTP 403 (SAS identifier cannot be found) when Azure Storage had not yet propagated a freshly issued SAS URI. Blob uploads now retry transient failures with exponential backoff. - Fixed
napt buildfailing to find the installer (or its version) on machines that never rannapt discover, such as CI publish jobs restoringdownloads/from a cache. Build now falls back to the pending release URL and version recorded in committed deployment state when the local discovery cache is absent. Previously any non-url_downloadrecipe failed with "Cannot locate installer file" in the reference GitOps publish workflow.
0.7.0 - 2026-07-07
Added
- Assignment drift detection -
napt promote apply(always) andnapt promote plan --check-drift(opt-in) compare Intune assignments against deployment state and warn on every discrepancy: removed or changed NAPT assignments, admin-made assignments on NAPT-managed apps, releases missing from the tenant, and stamped apps no state references. Drift is reported, never corrected. - Built-in assignment targets -
"All Users"and"All Devices"in deployment group lists assign Intune's virtual targets instead of Entra ID groups. A real group sharing one of these display names must be referenced by its object ID -
napt promote apply- Executes a promotion plan against Intune: assigns install entries, enters and advances releases through rings, unassigns displaced releases, and retires them perdeployment.retain_versions(only NAPT-stamped apps are ever deleted). Consumesstate/plan.jsonwhen present, plans fresh otherwise. Stale or already-applied actions are skipped, so re-running after a partial failure is safe. Admin-made assignments are always preserved -
napt promote plan- Computes which releases enter or advance the configured deployment rings (plus first-time install-entry assignments) and writes a reviewablestate/plan.json. The plan file exists exactly when there is work (a run that finds nothing removes a stale plan), so its git status drives review workflows. Read-only; applying plans arrives withnapt promote apply -
napt status- Shows deployed version, pending release, and ring positions across all apps;--format jsonfor scripting -
Deployment configuration - New
deployment:recipe section:require_pendingmakesnapt uploadfail unless the release was recorded at discovery (for review-gated publish workflows);rings,install, andretain_versionsdefine update promotion policy for the upcomingnapt promotecommand. Group name resolution requires theGroup.Read.Allapplication permission -
Deployment state files -
napt discoverrecords each discovered release instate/deployment/{id}.jsonas a pending publication candidate. One file per app; the newest discovery wins - Idempotent upload - Re-running
napt uploadadopts the existing NAPT-stamped Intune apps for a release instead of creating duplicates, and resumes the content upload when a previous run crashed mid-publish. Pass--forceto re-send metadata and content to the existing apps (e.g., after changing PSADT commands without a new installer release) - Upload provenance -
napt uploadstamps each Intune app entry's notes field withnapt/v1 id=<recipe-id> entry=<install|update> sha256=<hash>and records the published version, hash, and Intune app IDs in deployment state - Installer hash verification -
napt uploadrefuses to publish a package whose installer hash does not match the pending release recorded at discovery, so what was approved is exactly what ships
Changed
- BREAKING: Deployment state and plan files carry a schema version -
state/deployment/*.jsonandstate/plan.jsonare now stamped withschemaVersion: 1; NAPT refuses files whose schemaVersion is missing or unsupported. Add"schemaVersion": 1to files written by earlier pre-releases (plan files can simply be regenerated) - BREAKING:
intune.notesremoved - The Intune notes field is reserved for NAPT's provenance stamp. Move any notes content tointune.descriptionorintune.owner - BREAKING: Discovery cache moved -
state/versions.jsonis nowcache/discovery.json, andnapt discover --state-filewas renamed to--cache-file. Delete the old file; the cache rebuilds on the next run- New
directories.cacheanddirectories.statesettings --statelessalso skips deployment state writesnapt initadditionally createsstate/deployment/
- New
0.6.0 - 2026-07-04
Added
-
Auto-generated MSI install/uninstall commands -
napt buildnow generates install (Start-ADTMsiProcess, withALLUSERS=1appended for system deployments) and uninstall (Uninstall-ADTApplicationby exact ProductName) commands for MSI installers, so MSI recipes no longer needpsadt.installorpsadt.uninstall. Uninstall matches by name, not ProductCode, so it keeps working when vendors change the ProductCode between versions. Setpsadt.override_msi_commands: trueto use recipe commands instead -
Automatic app icon extraction -
napt buildextracts the app icon from MSI, EXE, and MSIX installers toicons/{id}.png, andnapt uploadsends it as the app logo in Intune and the Company Portal. Only PNG-encoded frames of at least 128px are used, preferring the size closest to Intune's recommended 256px. Drop a custom PNG aticons/{id}.pngto override (NAPT never overwrites existing files), or setintune.logo_pathto disable extraction for a recipe {{installer_filename}}recipe variable - Substituted at build time inpsadt.install,psadt.uninstall, andpsadt.app_varswith the exact filename of the downloaded installer in the package's Files directory. Replaces wildcard paths, which PSADT does not support- Unrecognized variable warning -
napt buildwarns when anapp_varsvalue or an install/uninstall script contains a{{snake_case}}token that is not a supported NAPT variable
Changed
- BREAKING: Recipe variable syntax - NAPT build-time variables now use
{{...}}instead of${...}. Replace${discovered_version}with{{discovered_version}}in recipes.${...}now exclusively means environment variables, which work only indiscovery.tokenanddiscovery.headers intune.logo_pathfile types restricted to PNG and JPEG - Other file types now warn and fall back to the extracted icon instead of uploading with a guessed MIME type
Fixed
- Fixed the version variable never being substituted in
psadt.installandpsadt.uninstallscripts, where it reached PowerShell as literal${...}syntax and silently expanded to an empty string at deploy time - Fixed 7-Zip recipes failing at deploy time because PSADT resolves
-FilePathliterally and does not expand wildcards; the recipes now use{{installer_filename}} - Fixed
intune.logo_pathrelative paths resolving from the current working directory instead of the recipe file's location as documented
0.5.1 - 2026-06-22
Fixed
- Fixed system-scope MSIX detection and requirements scripts matching any installed package instead of only the target app, which could cause Intune to report the wrong install state
- Fixed malformed timestamps in detection and requirements script logs when the device is in a UTC+ timezone, which made CMTrace display incorrect log times
- Fixed detection and requirements scripts failing to detect installed apps
whose registry version contains non-numeric text (e.g.
5.2 (64-bit)) - Fixed generated detection and requirements scripts breaking when the app name contains special characters such as quotes or dollar signs
- Fixed crash when an MSIX manifest's
<PublisherDisplayName/>element is present but contains no text. Publisher now defaults to an empty string in that case instead of triggering a downstreamTypeError.
0.5.0 - 2026-04-05
Added
- Automatic recipe validation in pipeline commands -
napt discover,napt build, andnapt uploadnow validate the merged configuration before proceeding. Invalid recipes produce clear error messages instead of failing with unexpected errors mid-pipeline - Configuration provenance in
napt validate --debug- Shows which config layer (code default, org.yaml, vendor defaults, or recipe) set each value. Helps debug unexpected configuration by tracing the full merge history - MSIX installer support - NAPT now supports
.msixinstallers alongside MSI and EXE. Metadata (display name, version, architecture, package identity) is extracted fromAppxManifest.xmlinside the package. Detection and requirements scripts query the AppX package database; install and uninstall commands are auto-generated from manifest metadata unless overridden withpsadt.override_msix_commands: true. Install scope is controlled byintune.run_as_account:"system"(default) uses provisioned cmdlets (Add-AppxProvisionedPackage/Remove-AppxProvisionedPackage);"user"uses per-user cmdlets (Add-AppxPackage/Remove-AppxPackage). Detection and requirements scripts automatically query the correct store based on the same setting.psadt.app_vars.RequireAdmindefaults tofalsewhen scope is"user" intunewin.releaseconfig key - PinIntuneWinAppUtil.exeto a specific release for reproducible builds (e.g.,release: "1.8.6"). Defaults to"latest", which resolves the current release via GitHub API. Each version is cached independently undercache/tools/{version}/logging:top-level section - New optional section for per-recipe logging configuration. Supportslog_format(cmtrace,text),log_level(verbose,debug), andlog_rotation_mb- New
intune:fields - Expanded metadata and upload behavior fields, all configurable at org, vendor, or recipe level:developer,owner,notes,logo_path,minimum_supported_windows_release,install_command,uninstall_command,is_featured(Company Portal featured app, defaults tofalse),allow_available_uninstall,device_restart_behavior,max_run_time_minutes,enforce_signature_check, andrun_as_32_bit - Sample recipe:
recipes/Microsoft/vscode.yaml- New example recipe for Visual Studio Code using theapi_jsonstrategy
Changed
- Build script module restructured - Detection and requirements script
generation consolidated into
registry_scriptsmodule (registry-based MSI/EXE) and newmsix_scriptsmodule (AppX-based MSIX). Shared PowerShell logging functions split from registry-specific helpers for cleaner template reuse - BREAKING: Recipe schema flattened - The
app:wrapper is removed. Fieldsname,id,discovery:,psadt:,intune:, andlogging:are now top-level. Update all recipes by moving fields out ofapp: - BREAKING:
source:renamed todiscovery:- All discovery configuration must move fromsource:todiscovery:. Affects all four strategies:api_github,api_json,url_download,web_scrape - BREAKING:
win32.installed_checkreplaced byintune.detection- Detection configuration moves fromwin32.installed_check.*tointune.detection.*. Fields are unchanged (display_name,architecture,exact_match,override_msi_display_name) - BREAKING: Directory config keys renamed -
defaults.discover.output_dir,defaults.build.output_dir, anddefaults.package.output_dirare nowdirectories.discover,directories.build, anddirectories.package. Updatedefaults/org.yamlif you set these keys
Fixed
- Cached installer filename now survives re-runs - NAPT stores the actual
downloaded filename in state after each download. On subsequent runs,
cache hits use the stored path instead of re-deriving from the recipe URL.
Previously, if the server returned a
Content-Dispositionheader or the download URL redirected to a different path, the cached file could not be found and the run would fail - Incomplete or stale cache no longer requires
--stateless- If the cache is missing fields or the cached file was deleted, NAPT automatically forces a fresh download instead of failing with a confusing error message intune.device_restart_behaviordefault corrected to"basedOnReturnCode"- Previously an inline fallback used"allow"instead of the value defined inDEFAULT_CONFIGnapt uploadnow creates two Intune Win32 app entries whenbuild_typesis"both"- Previously only one entry was created regardless ofbuild_types. The install entry (detection script only, base app name) and the update entry (detection + requirements scripts, prefixed withupdate_name_prefix) are now each created, uploaded, and committed in sequence. Single-entry behavior for"app_only"and"update_only"is unchanged- Version cache uses semantic comparison - Versions with a
vprefix (e.g.,v1.2.3vs1.2.3) are now correctly recognized as matching and won't re-download unnecessarily
0.4.0 - 2026-03-08
Added
napt upload <recipe>- New command uploads.intunewinpackages directly to Microsoft Intune via the Graph API. Authentication tries service principal (AZURE_CLIENT_ID,AZURE_CLIENT_SECRET,AZURE_TENANT_ID), then managed identity, then device code (requiresAZURE_CLIENT_ID+AZURE_TENANT_IDset and a TTY)napt package --version VERSION- New flag to target a specific build version instead of the most recent (e.g.,napt package recipes/Google/chrome.yaml --version 130.0.6723.116)- Configurable directory defaults and new CLI flags - All pipeline directory
flags now read from
defaults/org.yamlwhen not set on the CLI, and new flags are available on each command:napt discover --output-dir DIR- where to save downloaded installersnapt build --downloads-dir DIR- where to find the installernapt build --output-dir DIR- where to save buildsnapt package --builds-dir DIR- where to find the buildnapt package --output-dir DIR- where to save packages Three new config keys control the defaults:defaults.discover.output_dir(downloads),defaults.build.output_dir(builds), anddefaults.package.output_dir(packages). Each key is shared between the command that produces and the command that consumes the directory
- Code-Based Defaults - NAPT now ships with complete built-in defaults, making
pip install naptwork out of the box without requiring any configuration files. Organization defaults (defaults/org.yaml) and vendor defaults are now optional overrides rather than requirements napt initCommand - New command to scaffold NAPT project structure. Createsrecipes/,defaults/vendors/, and a commenteddefaults/org.yamltemplate. Safely skips existing files; use--forceto overwrite with automatic backup
Changed
napt packagenow takes<recipe>instead of<build_dir>- All commands now take a recipe path for consistent CLI usage. The build directory is inferred automatically from the recipe's app ID by scanning the builds output directory for the most recent completed buildnapt packageoutputs to versioned paths - Package output is nowpackages/{app_id}/{version}/Invoke-AppDeployToolkit.intunewin. Only one version is kept per app; the previous version directory is removed automatically when a new one is packaged (single-slot). Detection and requirements scripts are copied alongside the.intunewinfile sonapt uploadis self-contained and does not need the builds directory- Four-Layer Configuration - Configuration system now has four layers: code defaults (baseline) -> org.yaml (optional) -> vendor.yaml (optional) -> recipe (required). Old configs continue to work; new fields automatically get code defaults
0.3.1 - 2026-02-03
Changed
- PyPI Package Name - Package renamed from
notapkgtooltonaptfor simpler installation (pip install napt) - Automated PyPI Publishing - Releases now automatically publish to PyPI via GitHub Actions using Trusted Publisher (OIDC)
0.3.0 - 2026-02-02
Added
- Win32 Configuration Validation - Recipe validation now checks
win32configuration fields for correct types and values, with typo detection suggesting similar field names (e.g., "Did you mean 'display_name'?") - Detection Script Generation - Automatic PowerShell detection script generation for Intune Win32 app deployments during build process. Scripts check Windows uninstall registry keys, support exact or minimum version matching, and include CMTrace-formatted logging
- Requirements Script Generation - Automatic PowerShell requirements script generation for Intune Update app entries. Scripts check if an older version is installed and output "Required" when applicable
- Installer Type Filtering - Detection and requirements scripts now filter registry entries based on installer type. MSI builds strictly match MSI registry entries only; EXE builds permissively match any entry to handle EXE installers that run embedded MSIs internally
- Architecture-Aware Detection - Detection and requirements scripts now use explicit registry views based on target architecture, preventing false positives when x86 and x64 versions coexist. MSI architecture is auto-detected from Template property; non-MSI installers require
win32.installed_check.architectureconfiguration (x86, x64, arm64, or any) - MSI Display Name Override - New
override_msi_display_nameflag allows using customdisplay_nameinstead of MSI ProductName for registry lookups, solving edge cases where ProductName contains version numbers (e.g., "7-Zip 25.01"). Supports wildcards (*,?) for flexible matching
Changed
- BREAKING: Non-MSI Architecture Required -
win32.installed_check.architectureis now required for non-MSI installers (EXE, etc.). Allowed values:x86,x64,arm64,any - Discovery Performance Optimization - Version-first strategies (web_scrape, api_github, api_json) now check versions before downloading, enabling ~100-300ms update checks when unchanged instead of full downloads
- State file now saves actual download URLs for all strategies
- url_download Strategy Simplification - Removed
version.typeconfiguration requirement. MSI files are now auto-detected by file extension (.msi) for version extraction - BREAKING: Uniform Strategy Naming - Discovery strategies renamed to follow consistent
<source>_<method>pattern for better discoverability and scalability:http_static→url_download(fixed URL with file extraction)url_regex→web_scrape(web scraping for vendor download pages)http_json→api_json(generic JSON API queries)github_release→api_github(GitHub releases API)
- BREAKING: Simplified Version Types - Version type names shortened for clarity:
msi_product_version_from_file→msi- Removed nested
version.typeforweb_scrape(simplified tosource.link_selectorandsource.version_pattern)
- BREAKING: Recipe Format Change - Changed recipe format from
apps:array toapp:single object. Recipes now define a single application per file instead of an array. This simplifies the schema and matches actual usage (only one app was ever processed per recipe). - Documentation Rendering - Fixed module docstrings to follow Google-style format with proper indentation for mkdocstrings
Fixed
- Fixed ETag preservation bug causing alternating download/cached behavior in url_download strategy
- Fixed docstring formatting issues across multiple modules (missing blank lines, incorrect Args sections)
0.2.0 - 2025-11-07
Added
- PSADT Package Generation with
napt buildcommand - Creates complete PSADT v4 deployment packages with custom branding support - .intunewin Package Creation with
napt packagecommand - Generates Intune-ready packages using Microsoft's IntuneWinAppUtil.exe - GitHub Release Strategy (
api_github) - Discovers versions from GitHub releases with asset pattern filtering - HTTP JSON Strategy (
api_json) - Extracts versions and download URLs from JSON API endpoints using JSONPath - URL Regex Strategy (
url_pattern) - Extracts versions directly from URLs using regex patterns - Roadmap Management (
docs/roadmap.md) - Structured feature tracking with status categories and workspace automation - MkDocs Documentation Site - User guide and auto-generated API reference
Changed
- State File Schema v2 - Convention-based file paths, improved metadata tracking, per-app isolation (Breaking: old state files need regeneration)
- CLI Commands - Renamed
checktovalidatefor clarity - Recipe Format - PSADT
install/uninstallblocks now generate PSAppDeployToolkit v4 scripts - Console Output - Replaced Unicode symbols with ASCII for Windows compatibility (
✓→[OK], etc.)
Fixed
- PSADT Template Handling - Correctly identifies and copies PSAppDeployToolkit_Template_v4.zip files
- ETag Preservation - Fixed bug causing alternating download/cached behavior in url_download strategy
- Branding Application - Fixed Assets/ directory path resolution for custom icons and banners
- Version Extraction - Corrected regex escape sequences causing SyntaxWarnings
0.1.0 - 2025-10-23
Initial internal release.
Added
- Recipe Validation with
napt checkcommand - Validates recipe syntax and configuration without network calls - HTTP Static Discovery - Downloads installers from static URLs with ETag caching for efficiency
- Three-Layer Configuration - Organization defaults, vendor overrides, and recipe-specific settings with deep merging
- Version Comparison - Supports semantic versioning, MSI/EXE numeric versions, and Chrome-style multi-part versions
- MSI Version Extraction - Cross-platform support (Windows via msilib/PowerShell, Linux/macOS via msitools)
- Robust Downloads - Retry logic, atomic writes, SHA-256 verification, and conditional requests