<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pratyay Mustafi</title>
    <link>https://www.pratyay.online/</link>
    <description>Personal blog and technical guides by Pratyay Mustafi covering Linux, dotfiles, containerization, Tauri, and open source development.</description>
    <atom:link href="https://www.pratyay.online/rss.xml" rel="self" type="application/rss+xml"/>
    <generator>Zine -- https://zine-ssg.io</generator>
    <language>en-US</language>
    <ttl>60</ttl>
    <lastBuildDate>Sat, 28 Nov 2026 18:12:14 +0000</lastBuildDate>
    
      
        <item>
          <title>Privacy policy</title>
          <description>&lt;h2&gt;Privacy Policy&lt;/h2&gt;&lt;p&gt;This is a personal blog. If you have questions about this policy or a privacy request, please use the &lt;a href=https://app.youform.com/forms/8kgi7jvm&gt;contact form&lt;/a&gt;.&lt;h3&gt;Analytics&lt;/h3&gt;&lt;p&gt;The site uses GoatCounter to count page views. Its counter receives the page path for the page you visit.&lt;p&gt;The homepage also loads Google Tag Manager and Microsoft Clarity. Google Tag Manager manages tags, and the information those tags process depends on the current configuration. Microsoft Clarity may process interaction and technical information, such as clicks, scrolling, and browser or device details, according to its settings. These services process information under their own privacy terms and retention practices. Their settings may change, so check their policies for current details.&lt;h3&gt;Comments and contact&lt;/h3&gt;&lt;p&gt;Blog posts load comments through Giscus, which connects to GitHub Discussions. If you use the comment feature, GitHub and Giscus may process information about your visit and any comments you submit under their own policies. You can also email me directly. I use email messages to reply and keep them only as long as needed for the conversation or related obligations.&lt;h3&gt;Cookies and similar technologies&lt;/h3&gt;&lt;p&gt;The analytics and comment services may use cookies or similar technologies under their own settings. You can manage cookies through your browser. Blocking them may affect third party features. This site does not currently provide a separate cookie preference or analytics opt out control.&lt;h3&gt;Retention and security&lt;/h3&gt;&lt;p&gt;Each service sets its own retention practices for information it processes. I do not set a separate retention period for analytics or comments. I keep email messages only as long as needed to respond and handle related follow-up.&lt;p&gt;I take reasonable steps to protect information, but no website or online transmission method can be guaranteed completely secure.&lt;h3&gt;Privacy requests&lt;/h3&gt;&lt;p&gt;To ask a question or make a request about information you have sent me, please use the &lt;a href=https://app.youform.com/forms/8kgi7jvm&gt;contact form&lt;/a&gt;. Requests are handled in line with the laws that apply.&lt;h3&gt;Changes&lt;/h3&gt;&lt;p&gt;I may update this policy if the site or its services change. The latest version will appear on this page with a revised date.</description>
          <link>https://www.pratyay.online/privacy/</link>
          <pubDate>Sat, 28 Nov 2026 00:00:00 +0000</pubDate>
          <guid>https://www.pratyay.online/privacy/</guid>
        </item>
      
    
      
        <item>
          <title>Build Custom Linux iso's diy</title>
          <description>&lt;h2&gt;Prerequisites&lt;/h2&gt;&lt;p&gt;You should already have a bootc container build CI pipeline based on the &lt;a href=https://workshop.blue-build.org/ target=_blank&gt;BlueBuild workshop&lt;/a&gt;. This post starts after that image build works.&lt;p&gt;GitHub Actions has enough compute to build the image. Artifact storage is the weak point, so this workflow uploads the finished ISO to a separate file host.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/0p4PkZKF/image-png.png&gt;
&lt;figcaption&gt;GitHub Actions storage limits&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;The ISOs in this project are usually 5 to 6 gigabytes on an average. That is too large for an Actions artifact.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/Z1vLMRrM/image-png.png&gt;
&lt;figcaption&gt;Example ISO size&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;A small object storage will not cover a file size of 5 6 gigabytes it would be hell lot of expensive. I wanted something cheap and low maintenance (do once and forget), so this workflow uploads the finished ISO file to &lt;a href=https://gofile.io/ target=_blank&gt;GoFile&lt;/a&gt;.&lt;p&gt;&amp;nbsp;&lt;h2&gt;What the BlueBuild action does&lt;/h2&gt;&lt;p&gt;The &lt;a href=https://blue-build.org/reference/github-action/ target=_blank&gt;BlueBuild GitHub Action reference&lt;/a&gt; Lists the inputs for the image build. The action publishes a container image, not an ISO. The ISO comes next, using that published image as its input.&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;blue-build/github-action&lt;/strong&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;/blockquote&gt;&lt;p&gt;This is an automatically generated reference page for the &lt;a href=https://github.com/blue-build/github-action/ target=_blank&gt;BlueBuild GitHub Action&lt;/a&gt;.&lt;h3&gt;&lt;strong&gt;Inputs&lt;/strong&gt;&lt;/h3&gt;&lt;h4&gt;&lt;code&gt;recipe:&lt;/code&gt; &lt;strong&gt;(required)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The &lt;a href=https://blue-build.org/reference/recipe/ target=_blank&gt;recipe&lt;/a&gt; file to build the image from, relative to the &lt;code&gt;config/&lt;/code&gt; or &lt;code&gt;recipes/&lt;/code&gt; directory.&lt;p&gt;Default: &lt;code&gt;recipe.yml&lt;/code&gt;&lt;h4&gt;&lt;code&gt;cosign_private_key:&lt;/code&gt; &lt;strong&gt;(required)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The Sigstore/cosign secret used to sign the image.&lt;p&gt;Example:      &lt;code&gt;${{ secrets.COSIGN_PRIVATE_KEY }}&lt;/code&gt;&lt;h4&gt;&lt;code&gt;cosign_public_key:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The public key, but passed as env.&lt;p&gt;Example:      &lt;code&gt;${{ secrets.COSIGN_PUBLIC_KEY }}&lt;/code&gt;&lt;p&gt;Default: “&lt;h4&gt;&lt;code&gt;push:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Whether to push the image to a container registry.&lt;p&gt;Default: &lt;code&gt;true&lt;/code&gt;&lt;h4&gt;&lt;code&gt;registry_token:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The token used to sign into the container registry.&lt;p&gt;Example:      &lt;code&gt;${{ github.token }}&lt;/code&gt;&lt;p&gt;Default: “&lt;h4&gt;&lt;code&gt;registry_username:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The username used to sign into the container registry.&lt;p&gt;Default:      &lt;code&gt;${{ github.repository_owner }}&lt;/code&gt;&lt;h4&gt;&lt;code&gt;pr_event_number:&lt;/code&gt; &lt;strong&gt;(required)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The event number used to tag images pushed from pull requests.&lt;p&gt;Example:      &lt;code&gt;${{ github.event.number }}&lt;/code&gt;&lt;h4&gt;&lt;code&gt;maximize_build_space:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Whether to run the unwanted software remover to maximize build space in the GitHub builder. Disable this with ‘false’ if your image doesn’t take up a lot of space and you’d rather have shorter build times.&lt;p&gt;Default: &lt;code&gt;true&lt;/code&gt;&lt;h4&gt;&lt;code&gt;use_unstable_cli:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;If true, this action pulls the &lt;code&gt;main&lt;/code&gt; branch of blue-build/cli instead of the stable version the current action version is configured to use by default. This feature is useful for testing new features, but should not be used in production. Input must match the string ‘true’ for the unstable version to be used.&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;cli_version:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Set this with a tag, sha, or branch name for the blue-build/cli repo to use that particular version of the CLI tool. This will override the &lt;code&gt;use_unstable_cli&lt;/code&gt; input for the action.&lt;h4&gt;&lt;code&gt;registry:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The container registry to push the built image to.&lt;p&gt;Default: &lt;code&gt;ghcr.io&lt;/code&gt;&lt;h4&gt;&lt;code&gt;registry_namespace:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The namespace on the registry to push to.&lt;p&gt;Example: &lt;code&gt;ublue-os&lt;/code&gt;&lt;p&gt;Default:      &lt;code&gt;${{ github.repository_owner }}&lt;/code&gt;&lt;h4&gt;&lt;code&gt;chunkah:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Uses Chunkah to rechunk the image, allowing for smaller images and smaller updates.&lt;p&gt;This will increase the build-time and take up more space during build-time.&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;build_chunked_oci:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Uses &lt;code&gt;rpm-ostree compose build-chunked-oci&lt;/code&gt; to rechunk the image, allowing for smaller images and smaller updates.&lt;p&gt;This will increase the build-time and take up more space during build-time.&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;max_layers:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Maximum number of layers to use when rechunking with &lt;code&gt;build-chunked-oci&lt;/code&gt;.&lt;p&gt;Default: &lt;code&gt;128&lt;/code&gt;&lt;h4&gt;&lt;code&gt;rechunk:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Rechunk the ostree-based result images with &lt;a href=https://github.com/hhd-dev/rechunk target=_blank&gt;github.com/hhd-dev/rechunk&lt;/a&gt; for more efficient diffs and updates. (lower image size, better download speed, better update resuming)&lt;p&gt;Will make your builds considerably slower. This is an experimental option, as it can cause issues with file permissions in some scenarios, so enable on your own risk.&lt;p&gt;&lt;em&gt;Warning&lt;/em&gt;: This option will be deprecated in the future.&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;rechunk_clear_plan:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Disregard previous build’s layer plan when rechunking.&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;use_cache:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Make use of layer cache by pushing the layers to the registry. Input must match the string ‘true’ for the step to be enabled.&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;retry_push_count:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The number of times to retry pushing the image.&lt;p&gt;Default: &lt;code&gt;0&lt;/code&gt;&lt;h4&gt;&lt;code&gt;squash:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Uses buildah to squash the build’s layers into a single layer. Use of this option disables cache. Conflicts with adding &lt;code&gt;--build-driver&lt;/code&gt; or &lt;code&gt;--squash&lt;/code&gt; to the build opts.&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;build_opts:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Provide options to the call to the BlueBuild CLI build command. If you use this with the squash input set to true and provide either of the &lt;code&gt;--build-driver&lt;/code&gt; or &lt;code&gt;--squash&lt;/code&gt; flags an error will occur and the action will not run.&lt;p&gt;Default:&lt;h4&gt;&lt;code&gt;working_directory:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Changes working directory for whole build. For example, setting this to &lt;code&gt;./abc/&lt;/code&gt; would cause for the recipe to be read from &lt;code&gt;./abc/recipes/recipe.yml&lt;/code&gt;.&lt;p&gt;Default: &lt;code&gt;./&lt;/code&gt;&lt;h4&gt;&lt;code&gt;skip_checkout:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Set to true to skip doing the actions/checkout step. This allows you to checkout manually before calling bluebuild/github-action and to modify files (such as supplying build information to other scripts) before building.&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;verify_install:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Set to true verify the cosign signature for the Blue-Build cli&lt;p&gt;Default: &lt;code&gt;false&lt;/code&gt;&lt;h4&gt;&lt;code&gt;digestfile:&lt;/code&gt; &lt;strong&gt;(optional)&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Filesystem path that digests of built images will be written to in JSON format.&lt;p&gt;Example file format: &lt;code&gt;{"ghcr.io/blue-build/base-images/fedora-kinoite:latest": "sha256:abcdef..."}&lt;/code&gt;&lt;p&gt;Default: ““&lt;/blockquote&gt;&lt;p&gt;create an account on &lt;a href=https://gofile.io/ target=_blank&gt;gofile.io&lt;/a&gt;   And store the API KEY securely as &lt;code&gt;GOFILE_TOKEN&lt;/code&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/yc0SwnVd/image-png.png&gt;
&lt;figcaption&gt;apikey&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Store the api key in repository secret&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/GQDrgfbC/image-png.png&gt;
&lt;figcaption&gt;GoFile storage overview&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;and account id as  &lt;code&gt;GOFILE_ACCOUNT_ID&lt;/code&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/GvXCKp0K/image-png.png&gt;
&lt;figcaption&gt;accountid&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/LXFkPdWY/2026-11-25-01-46-21-p-m-Github-Demo.gif&gt;
&lt;figcaption&gt;add secrets&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;.&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;common.sh&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;extract-image-name.sh&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;generate-iso.sh&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;upload.sh&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;view-upload.sh&lt;/span&gt;
&lt;span class="constant function"&gt;└──&lt;/span&gt; &lt;span class=constant&gt;write-job-summary.sh&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;list of scripts&lt;ol&gt;&lt;li&gt;&lt;code&gt;.github/scripts/common.sh&lt;/code&gt;&lt;/ol&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class=comment&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class=comment&gt;# Shared helpers for the ISO workflow scripts. Source this; never run it directly.&lt;/span&gt;

&lt;span class="constant function"&gt;set&lt;/span&gt; &lt;span class=constant&gt;-euo&lt;/span&gt; &lt;span class=constant&gt;pipefail&lt;/span&gt;

&lt;span class=function&gt;log&lt;/span&gt;() { &lt;span class="constant function"&gt;printf&lt;/span&gt; &lt;span class="constant string"&gt;'%s\n'&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant string"&gt;*"&lt;/span&gt;; }
&lt;span class=function&gt;warn&lt;/span&gt;() { &lt;span class="constant function"&gt;printf&lt;/span&gt; &lt;span class="constant string"&gt;'::warning::%s\n'&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant string"&gt;*"&lt;/span&gt;; }
&lt;span class=function&gt;error&lt;/span&gt;() { &lt;span class="constant function"&gt;printf&lt;/span&gt; &lt;span class="constant string"&gt;'::error::%s\n'&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant string"&gt;*"&lt;/span&gt; &amp;gt;&amp;amp;2; }

&lt;span class=function&gt;die&lt;/span&gt;() {
  &lt;span class="constant function"&gt;error&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant string"&gt;*"&lt;/span&gt;
  &lt;span class="constant function"&gt;exit&lt;/span&gt; &lt;span class=constant&gt;1&lt;/span&gt;
}

&lt;span class=comment&gt;# require_env NAME [NAME...] - fail with one clear message per missing variable.&lt;/span&gt;
&lt;span class=function&gt;require_env&lt;/span&gt;() {
  local &lt;span class=property&gt;name&lt;/span&gt;
  &lt;span class=keyword&gt;for&lt;/span&gt; &lt;span class=property&gt;name&lt;/span&gt; &lt;span class=keyword&gt;in&lt;/span&gt; &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class=string&gt;@"&lt;/span&gt;; &lt;span class=keyword&gt;do&lt;/span&gt;
    [[ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${!&lt;/span&gt;&lt;span class="embedded property string"&gt;name&lt;/span&gt;&lt;span class="embedded string"&gt;:-}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]] || &lt;span class="constant function"&gt;die&lt;/span&gt; &lt;span class="constant string"&gt;"Missing required environment variable: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;name&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;done&lt;/span&gt;
}

&lt;span class=comment&gt;# github_output "key=value" - write a step output when running in Actions,&lt;/span&gt;
&lt;span class=comment&gt;# print it locally otherwise.&lt;/span&gt;
&lt;span class=function&gt;github_output&lt;/span&gt;() {
  &lt;span class=keyword&gt;if&lt;/span&gt; [[ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;GITHUB_OUTPUT&lt;/span&gt;&lt;span class="embedded string"&gt;:-}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;printf&lt;/span&gt; &lt;span class="constant string"&gt;'%s\n'&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;1&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;GITHUB_OUTPUT&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;else&lt;/span&gt;
    &lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"[output] &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;1&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
}

&lt;span class=comment&gt;# step_summary "line" - append a line to the job summary when running in&lt;/span&gt;
&lt;span class=comment&gt;# Actions, print it locally otherwise.&lt;/span&gt;
&lt;span class=function&gt;step_summary&lt;/span&gt;() {
  &lt;span class=keyword&gt;if&lt;/span&gt; [[ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;GITHUB_STEP_SUMMARY&lt;/span&gt;&lt;span class="embedded string"&gt;:-}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;printf&lt;/span&gt; &lt;span class="constant string"&gt;'%s\n'&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;1&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;GITHUB_STEP_SUMMARY&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;else&lt;/span&gt;
    &lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;1&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;&lt;li&gt;&lt;code&gt;.github/scripts/extract-image-name.sh&lt;/code&gt;&lt;/ol&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class=comment&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class=comment&gt;# Derive a short ISO name from a fully qualified image reference.&lt;/span&gt;

&lt;span class=property&gt;SCRIPT_DIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;cd&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;dirname&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;BASH_SOURCE&lt;/span&gt;&lt;span class="constant embedded string"&gt;[0]}&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;)" &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="constant function"&gt;pwd&lt;/span&gt;)"
&lt;span class="constant function"&gt;source&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;SCRIPT_DIR&lt;/span&gt;&lt;span class="constant string"&gt;/common.sh"&lt;/span&gt;

&lt;span class="constant function"&gt;require_env&lt;/span&gt; &lt;span class=constant&gt;IMAGE&lt;/span&gt;

&lt;span class=property&gt;BASENAME&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;IMAGE&lt;/span&gt;&lt;span class="embedded string"&gt;##*/}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
&lt;span class=property&gt;NAME&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;BASENAME&lt;/span&gt;&lt;span class="embedded string"&gt;%:*}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;

[[ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;NAME&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]] || &lt;span class="constant function"&gt;die&lt;/span&gt; &lt;span class="constant string"&gt;"Could not derive a name from IMAGE=&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;IMAGE&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;

&lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"Image: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;IMAGE&lt;/span&gt;&lt;span class="constant string"&gt; -&amp;gt; name: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;NAME&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;span class="constant function"&gt;github_output&lt;/span&gt; &lt;span class="constant string"&gt;"name=&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;NAME&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;&lt;li&gt;&lt;code&gt;.github/scripts/generate-iso.sh&lt;/code&gt;&lt;/ol&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class=comment&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class=comment&gt;# Build an ISO for a published container image and normalize its output path.&lt;/span&gt;

&lt;span class=property&gt;SCRIPT_DIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;cd&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;dirname&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;BASH_SOURCE&lt;/span&gt;&lt;span class="constant embedded string"&gt;[0]}&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;)" &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="constant function"&gt;pwd&lt;/span&gt;)"
&lt;span class="constant function"&gt;source&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;SCRIPT_DIR&lt;/span&gt;&lt;span class="constant string"&gt;/common.sh"&lt;/span&gt;

&lt;span class="constant function"&gt;require_env&lt;/span&gt; &lt;span class=constant&gt;IMAGE&lt;/span&gt; &lt;span class=constant&gt;NAME&lt;/span&gt;

&lt;span class=property&gt;OUTPUT_DIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;OUTPUT_DIR&lt;/span&gt;&lt;span class="embedded string"&gt;:-&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;pwd&lt;/span&gt;&lt;span class="embedded string"&gt;)&lt;/span&gt;&lt;span class=string&gt;/output}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
&lt;span class="constant function"&gt;mkdir&lt;/span&gt; &lt;span class=constant&gt;-p&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;OUTPUT_DIR&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;span class=property&gt;OUTPUT_DIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;cd&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;OUTPUT_DIR&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded operator"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded function"&gt;pwd&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
&lt;span class=property&gt;ISO_PATH&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;OUTPUT_DIR&lt;/span&gt;&lt;span class=string&gt;/&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;NAME&lt;/span&gt;&lt;span class="embedded string"&gt;}&lt;/span&gt;&lt;span class=string&gt;.iso"&lt;/span&gt;

&lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"Generating ISO: image=&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;IMAGE&lt;/span&gt;&lt;span class="constant string"&gt; name=&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;NAME&lt;/span&gt;&lt;span class="constant string"&gt; output=&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;OUTPUT_DIR&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;

&lt;span class=keyword&gt;for&lt;/span&gt; &lt;span class=property&gt;tag&lt;/span&gt; &lt;span class=keyword&gt;in&lt;/span&gt; latest v1.4.0; &lt;span class=keyword&gt;do&lt;/span&gt;
  &lt;span class=keyword&gt;if&lt;/span&gt; ! &lt;span class="constant function"&gt;podman&lt;/span&gt; &lt;span class=constant&gt;pull&lt;/span&gt; &lt;span class="constant string"&gt;"ghcr.io/jasonn3/build-container-installer:&lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;tag&lt;/span&gt;&lt;span class="constant embedded string"&gt;}&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;warn&lt;/span&gt; &lt;span class="constant string"&gt;"Warm-up pull of &lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;tag&lt;/span&gt;&lt;span class="constant embedded string"&gt;}&lt;/span&gt;&lt;span class="constant string"&gt; failed; continuing."&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
&lt;span class=keyword&gt;done&lt;/span&gt;

&lt;span class=keyword&gt;if&lt;/span&gt; ! &lt;span class="constant function"&gt;bluebuild&lt;/span&gt; &lt;span class=constant&gt;generate-iso&lt;/span&gt; &lt;span class=constant&gt;--iso-name&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;NAME&lt;/span&gt;&lt;span class="constant embedded string"&gt;}&lt;/span&gt;&lt;span class="constant string"&gt;.iso"&lt;/span&gt; &lt;span class=constant&gt;--output-dir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;OUTPUT_DIR&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class=constant&gt;image&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;IMAGE&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;; &lt;span class=keyword&gt;then&lt;/span&gt;
  &lt;span class="constant function"&gt;warn&lt;/span&gt; &lt;span class="constant string"&gt;"bluebuild generate-iso failed; retrying once with VERSION=42 (lorax fallback)."&lt;/span&gt;
  &lt;span class="constant property"&gt;VERSION&lt;/span&gt;&lt;span class=constant&gt;=42&lt;/span&gt; &lt;span class="constant function"&gt;bluebuild&lt;/span&gt; &lt;span class=constant&gt;generate-iso&lt;/span&gt; &lt;span class=constant&gt;--iso-name&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;NAME&lt;/span&gt;&lt;span class="constant embedded string"&gt;}&lt;/span&gt;&lt;span class="constant string"&gt;.iso"&lt;/span&gt; &lt;span class=constant&gt;--output-dir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;OUTPUT_DIR&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class=constant&gt;image&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;IMAGE&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;span class=keyword&gt;fi&lt;/span&gt;

&lt;span class=keyword&gt;if&lt;/span&gt; [[ ! -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;ISO_PATH&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]]; &lt;span class=keyword&gt;then&lt;/span&gt;
  &lt;span class="constant function"&gt;mapfile&lt;/span&gt; &lt;span class=constant&gt;-t&lt;/span&gt; &lt;span class=constant&gt;candidates&lt;/span&gt; &lt;span class=operator&gt;&amp;lt;&lt;/span&gt; &lt;span class=embedded&gt;&amp;lt;(&lt;/span&gt;&lt;span class="constant embedded function"&gt;find&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;OUTPUT_DIR&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-maxdepth&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;3&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-type&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;f&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-name&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;'*.iso'&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded operator"&gt;|&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded function"&gt;sort&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;
  &lt;span class=keyword&gt;if&lt;/span&gt; [[ &lt;span class=embedded&gt;${#&lt;/span&gt;&lt;span class="embedded property"&gt;candidates&lt;/span&gt;&lt;span class=embedded&gt;[@]}&lt;/span&gt; -gt 0 ]]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"Expected &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;ISO_PATH&lt;/span&gt;&lt;span class="constant string"&gt;; promoting &lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;candidates&lt;/span&gt;&lt;span class="constant embedded string"&gt;[0]}&lt;/span&gt;&lt;span class="constant string"&gt; instead."&lt;/span&gt;
    &lt;span class="constant function"&gt;cp&lt;/span&gt; &lt;span class=constant&gt;-v&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;candidates&lt;/span&gt;&lt;span class="constant embedded string"&gt;[0]}&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;ISO_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
&lt;span class=keyword&gt;fi&lt;/span&gt;

[[ -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;ISO_PATH&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]] || &lt;span class="constant function"&gt;die&lt;/span&gt; &lt;span class="constant string"&gt;"ISO not found at &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;ISO_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;

&lt;span class="constant function"&gt;ls&lt;/span&gt; &lt;span class=constant&gt;-lh&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;ISO_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;span class="constant function"&gt;github_output&lt;/span&gt; &lt;span class="constant string"&gt;"iso-output-path=&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;ISO_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;&lt;li&gt;&lt;code&gt;.github/scripts/upload.sh&lt;/code&gt;&lt;/ol&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class=comment&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class=comment&gt;# Upload an ISO to GoFile and emit a download URL plus QR code URL.&lt;/span&gt;
&lt;span class=property&gt;SCRIPT_DIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;cd&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;dirname&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;BASH_SOURCE&lt;/span&gt;&lt;span class="constant embedded string"&gt;[0]}&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;)" &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="constant function"&gt;pwd&lt;/span&gt;)"
&lt;span class="constant function"&gt;source&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;SCRIPT_DIR&lt;/span&gt;&lt;span class="constant string"&gt;/common.sh"&lt;/span&gt;

&lt;span class="constant function"&gt;require_env&lt;/span&gt; &lt;span class=constant&gt;FILE&lt;/span&gt; &lt;span class=constant&gt;NAME&lt;/span&gt; &lt;span class=constant&gt;IMAGE&lt;/span&gt;
[[ -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;FILE&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]] || &lt;span class="constant function"&gt;die&lt;/span&gt; &lt;span class="constant string"&gt;"ISO file not found: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;FILE&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;

&lt;span class=comment&gt;# Extract a usable download URL from a GoFile API response.&lt;/span&gt;
&lt;span class=function&gt;response_url&lt;/span&gt;() {
  local &lt;span class=property&gt;url&lt;/span&gt;
  &lt;span class=property&gt;url&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;printf&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;'%s'&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;1&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded operator"&gt;|&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded function"&gt;jq&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-r&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;'.data.downloadPage // .data.directLink // empty'&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded number"&gt;2&lt;/span&gt;&lt;span class="embedded operator"&gt;&amp;gt;&lt;/span&gt;&lt;span class=embedded&gt;/dev/null || &lt;/span&gt;&lt;span class="constant embedded function"&gt;true&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
  &lt;span class=keyword&gt;if&lt;/span&gt; [[ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;url&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;url&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; != &lt;span class=string&gt;"null"&lt;/span&gt; ]]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;printf&lt;/span&gt; &lt;span class="constant string"&gt;'%s'&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;url&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
  &lt;span class="constant function"&gt;return&lt;/span&gt; &lt;span class=constant&gt;0&lt;/span&gt;
}

&lt;span class=property&gt;TOKEN&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;GOFILE_TOKEN&lt;/span&gt;&lt;span class="embedded string"&gt;:-&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;TOKEN&lt;/span&gt;&lt;span class="embedded string"&gt;:-}&lt;/span&gt;&lt;span class=string&gt;}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
&lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"Uploading &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;FILE&lt;/span&gt;&lt;span class="constant string"&gt; (&lt;/span&gt;&lt;span class="constant embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;du&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-h&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;FILE&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded operator"&gt;|&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded function"&gt;cut&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-f1&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;) to GoFile..."

&lt;span class=property&gt;RESPONSE&lt;/span&gt;=&lt;span class=string&gt;""&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; [[ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TOKEN&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]]; &lt;span class=keyword&gt;then&lt;/span&gt;
  &lt;span class=property&gt;RESPONSE&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;curl&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-sS&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;--fail-with-body&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-X&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;POST&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-F&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"file=@&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;FILE&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-F&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"token=&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;TOKEN&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; \
    &lt;/span&gt;&lt;span class="constant embedded"&gt;https://upload.gofile.io/uploadFile&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded number"&gt;2&lt;/span&gt;&lt;span class=embedded&gt;&amp;gt;&amp;amp;1)&lt;/span&gt;" || &lt;span class=property&gt;RESPONSE&lt;/span&gt;=&lt;span class=string&gt;""&lt;/span&gt;
  &lt;span class=keyword&gt;if&lt;/span&gt; [[ -z &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;response_url&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;RESPONSE&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;" ]]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class=property&gt;RESPONSE&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;curl&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-sS&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;--fail-with-body&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-X&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;POST&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-F&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"file=@&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;FILE&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; \
      &lt;/span&gt;&lt;span class="constant embedded"&gt;-H&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;TOKEN&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;https://upload.gofile.io/uploadFile&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded number"&gt;2&lt;/span&gt;&lt;span class=embedded&gt;&amp;gt;&amp;amp;1)&lt;/span&gt;" || &lt;span class=property&gt;RESPONSE&lt;/span&gt;=&lt;span class=string&gt;""&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
&lt;span class=keyword&gt;fi&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; [[ -z &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;response_url&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;RESPONSE&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;" ]]; &lt;span class=keyword&gt;then&lt;/span&gt;
  &lt;span class=property&gt;RESPONSE&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;curl&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-sS&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;--fail-with-body&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-X&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;POST&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-F&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"file=@&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;FILE&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; \
    &lt;/span&gt;&lt;span class="constant embedded"&gt;https://upload.gofile.io/uploadFile&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded number"&gt;2&lt;/span&gt;&lt;span class=embedded&gt;&amp;gt;&amp;amp;1)&lt;/span&gt;" || &lt;span class=property&gt;RESPONSE&lt;/span&gt;=&lt;span class=string&gt;""&lt;/span&gt;
&lt;span class=keyword&gt;fi&lt;/span&gt;

&lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"GoFile response: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;RESPONSE&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;span class=property&gt;URL&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;response_url&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;RESPONSE&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
[[ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;URL&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]] || &lt;span class="constant function"&gt;die&lt;/span&gt; &lt;span class="constant string"&gt;"Could not parse a download URL from the GoFile response."&lt;/span&gt;

&lt;span class=property&gt;QR_DATA&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;python3&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-c&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;'import sys, urllib.parse; print(urllib.parse.quote(sys.argv[1], safe=""))'&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;URL&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
&lt;span class=property&gt;QRCODE&lt;/span&gt;=&lt;span class=string&gt;"https://api.qrserver.com/v1/create-qr-code/?size=256x256&amp;amp;data=&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;QR_DATA&lt;/span&gt;&lt;span class="embedded string"&gt;}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;

&lt;span class="constant function"&gt;github_output&lt;/span&gt; &lt;span class="constant string"&gt;"url=&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;URL&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;span class="constant function"&gt;github_output&lt;/span&gt; &lt;span class="constant string"&gt;"qrcode=&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;QRCODE&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"GoFile URL: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;URL&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;span class="constant function"&gt;log&lt;/span&gt; &lt;span class="constant string"&gt;"GoFile QR:  &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;QRCODE&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;p&gt;&lt;code&gt;iso-action.yaml&lt;/code&gt;&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Build ISO and Upload&lt;/span&gt;

&lt;span class="property string"&gt;on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;workflow_run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;workflows&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class=string&gt;"bluebuild"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
    &lt;span class="property string"&gt;types&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;completed&lt;/span&gt;
  &lt;span class="property string"&gt;workflow_dispatch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;

&lt;span class="property string"&gt;concurrency&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;group&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;iso-build-${{ github.ref || github.run_id }}&lt;/span&gt;
  &lt;span class="property string"&gt;cancel-in-progress&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=boolean&gt;false&lt;/span&gt;

&lt;span class="comment spell"&gt;# Pinned tool version: change here to upgrade every ISO build at once.&lt;/span&gt;
&lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;BLUEBUILD_VERSION&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"0.9.42"&lt;/span&gt;

&lt;span class="property string"&gt;jobs&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;iso&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Build ISO&lt;/span&gt;
    &lt;span class="property string"&gt;runs-on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="property string"&gt;permissions&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class="property string"&gt;contents&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;
      &lt;span class="property string"&gt;packages&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;
    &lt;span class="property string"&gt;strategy&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class="property string"&gt;fail-fast&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=boolean&gt;false&lt;/span&gt;
      &lt;span class="property string"&gt;matrix&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
        &lt;span class="property string"&gt;images&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;quay.io/pratyay360/catchy-kinoite:latest&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;quay.io/pratyay360/catchy-silverblue:latest&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;quay.io/pratyay360/catchy-sway:44&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;quay.io/pratyay360/catchy-cosmic:latest&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;quay.io/pratyay360/sway:44&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;quay.io/pratyay360/kinoite:latest&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;quay.io/pratyay360/silverblue:latest&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;quay.io/pratyay360/cosmic:latest&lt;/span&gt;

    &lt;span class="comment spell"&gt;# Every run step is a single script with a fixed contract: required inputs&lt;/span&gt;
    &lt;span class="comment spell"&gt;# are passed as env vars, results go to $GITHUB_OUTPUT or the job summary.&lt;/span&gt;
    &lt;span class="property string"&gt;steps&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Checkout repository&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/checkout@main&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Install toolchain&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;./.github/scripts/install-toolchain.sh&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Extract image name&lt;/span&gt;
        &lt;span class="property string"&gt;id&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;recipe&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;IMAGE&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ matrix.images }}&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;./.github/scripts/extract-image-name.sh&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Generate ISO from published image&lt;/span&gt;
        &lt;span class="property string"&gt;id&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;generate-iso&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;IMAGE&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ matrix.images }}&lt;/span&gt;
          &lt;span class="property string"&gt;NAME&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.recipe.outputs.name }}&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;./.github/scripts/generate-iso.sh&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Upload ISO to GoFile&lt;/span&gt;
        &lt;span class="property string"&gt;id&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;gofile&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;FILE&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.generate-iso.outputs.iso-output-path }}&lt;/span&gt;
          &lt;span class="property string"&gt;IMAGE&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ matrix.images }}&lt;/span&gt;
          &lt;span class="property string"&gt;NAME&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.recipe.outputs.name }}&lt;/span&gt;
          &lt;span class="property string"&gt;GOFILE_TOKEN&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.GOFILE_TOKEN }}&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;./.github/scripts/upload.sh&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;View URL and QR Code&lt;/span&gt;
        &lt;span class="property string"&gt;if&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;always()&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;ISO_FILE&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.generate-iso.outputs.iso-output-path }}&lt;/span&gt;
          &lt;span class="property string"&gt;URL&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.gofile.outputs.url }}&lt;/span&gt;
          &lt;span class="property string"&gt;QRCODE&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.gofile.outputs.qrcode }}&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;./.github/scripts/view-upload.sh&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Add job step summary&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;NAME&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.recipe.outputs.name }}&lt;/span&gt;
          &lt;span class="property string"&gt;IMAGE&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ matrix.images }}&lt;/span&gt;
          &lt;span class="property string"&gt;URL&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.gofile.outputs.url }}&lt;/span&gt;
          &lt;span class="property string"&gt;QRCODE&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.gofile.outputs.qrcode }}&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;./.github/scripts/write-job-summary.sh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
</description>
          <link>https://www.pratyay.online/devlog/build-custom-linux-iso-diy/</link>
          <pubDate>Mon, 23 Nov 2026 18:37:31 +0000</pubDate>
          <guid>https://www.pratyay.online/devlog/build-custom-linux-iso-diy/</guid>
        </item>
      
    
      
        <item>
          <title>Release app built with tauri on microsoft store.</title>
          <description>&lt;p&gt;I recently built Drawx, a desktop app built using &lt;a href=https://v2.tauri.app/ target=_blank&gt;https://v2.tauri.app/&lt;/a&gt; And Vite + React. Tauri is rust based framework for building cross-platform applications. Many Tauri projects already have CI set up (for example, through &lt;a href=https://web.crabnebula.cloud/ target=_blank&gt;https://web.crabnebula.cloud&lt;/a&gt;), but publishing to the Microsoft Store is a different process you can only publish signed app on the app store.&lt;p&gt;This guide walks through the steps to publish a Tauri app to the Microsoft Store.&lt;p&gt;Start with Microsoft Partner Center: &lt;a href=https://partner.microsoft.com/en-US/ target=_blank&gt;https://partner.microsoft.com/en-US/&lt;/a&gt;&lt;h2&gt;1. Sign in to Partner Center&lt;/h2&gt;&lt;p&gt;Sign in to your Partner Center account, or create one if you do not have one yet.&lt;/p&gt;&lt;a href=https://partner.microsoft.com/ title="Partner Center"&gt;&lt;img src=https://i.ibb.co/jk5CMTR7/image-png.png alt="Partner Center"&gt;&lt;/a&gt;
&lt;h2&gt;2. Understand code signing&lt;/h2&gt;&lt;p&gt;If you plan to publish desktop binaries, you need to understand code signing. Code signing certificates come from trusted certificate authorities, and they usually cost money. You cannot create your own trusted certificate and expect Windows or users to trust it in the same way.&lt;p&gt;These pages explain code signing and certificate options:&lt;ul&gt;&lt;li&gt;&lt;a href=https://www.globalsign.com/en/code-signing-certificate/what-is-code-signing-certificate target=_blank&gt;What is a code signing certificate? (Global Sign)&lt;/a&gt;&lt;li&gt;&lt;a href=https://www.digicert.com/signing/code-signing-certificates#code_signing_key_locker target=_blank&gt;Code signing certificates from (DigiCert)&lt;/a&gt;&lt;li&gt;&lt;a href=https://partner.microsoft.com/en-us/dashboard/home target=_blank&gt;Partner Center dashboard&lt;/a&gt;&lt;/ul&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/B56kMjnS/image-png.png&gt;
&lt;figcaption&gt;Partner Center&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/BKjPvY7Y/image-png.png&gt;
&lt;figcaption&gt;Partner Center&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/fdtD9HHj/image-png.png&gt;
&lt;figcaption&gt;Partner Center&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;h2&gt;3. Reserve your app name&lt;/h2&gt;&lt;p&gt;In Partner Center, reserve the name you want to use for your app.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/s9LGJBLd/image-png.png&gt;
&lt;figcaption&gt;create new app&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/pjw8ghpz/image-png.png&gt;
&lt;figcaption&gt;reserve app name&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;h3&gt;4. Get a code signing certificate for releasing &lt;code&gt;.exe&lt;/code&gt; or &lt;code&gt;.msi&lt;/code&gt;&lt;/h3&gt;&lt;p&gt;If you publish &lt;code&gt;.exe&lt;/code&gt; or &lt;code&gt;.msi&lt;/code&gt; Installers in the Store. Getting a code signing is necessary you need a code signing certificate which can be obtained from online providers, &lt;a href=https://www.digicert.com/signing/code-signing-certificates#code_signing_key_locker target=_blank&gt;DigiCert&lt;/a&gt; &lt;a href=https://www.globalsign.com/en/code-signing-certificate/what-is-code-signing-certificate target=_blank&gt;or GlobalSign.&lt;/a&gt;&lt;h3&gt;5. Use Microsoft Store signing with MSIX&lt;/h3&gt;&lt;p&gt;Microsoft can sign your package when you submit it to the Store, but your package must be in &lt;code&gt;.msix&lt;/code&gt; or &lt;code&gt;.appx&lt;/code&gt; Format this is the only way to publish an app for free.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/9mJF99yq/image-png.png&gt;
&lt;figcaption&gt;Microsoft Store&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;h2&gt;6. Example GitHub Actions workflow (MSI to MSIX)&lt;/h2&gt;&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Build MSIX&lt;/span&gt;

&lt;span class="property string"&gt;on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;workflow_dispatch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;

&lt;span class="property string"&gt;permissions&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;contents&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;
  &lt;span class="property string"&gt;id-token&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;
  &lt;span class="property string"&gt;packages&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;
  &lt;span class="property string"&gt;actions&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;

&lt;span class="property string"&gt;jobs&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;msix&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;MSI -&amp;gt; MSIX&lt;/span&gt;
    &lt;span class="property string"&gt;runs-on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;windows-latest&lt;/span&gt;
    &lt;span class="property string"&gt;timeout-minutes&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=number&gt;60&lt;/span&gt;
    &lt;span class="property string"&gt;steps&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Checkout&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/checkout@v7&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Setup Bun&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;oven-sh/setup-bun@v2&lt;/span&gt;
        &lt;span class="property string"&gt;with&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;bun-version&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"1.4.1"&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Install Rust&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;dtolnay/rust-toolchain@stable&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Cache Rust&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Swatinem/rust-cache@v2&lt;/span&gt;
        &lt;span class="property string"&gt;with&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;workspaces&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"./src-tauri -&amp;gt; target"&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Install JS dependencies&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;bun install --frozen-lockfile&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Build MSI&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;bun run tauri build --bundles msi&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;GITHUB_TOKEN&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ github.token }}&lt;/span&gt;
          &lt;span class="property string"&gt;TAURI_BUNDLE_CREATE_UPDATER_ARTIFACTS&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"false"&lt;/span&gt;
          &lt;span class="property string"&gt;TAURI_SIGNING_PRIVATE_KEY&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}&lt;/span&gt;
          &lt;span class="property string"&gt;TAURI_SIGNING_PRIVATE_KEY_PASSWORD&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}&lt;/span&gt;
          &lt;span class="property string"&gt;SENTRY_AUTH_TOKEN&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.SENTRY_AUTH_TOKEN }}&lt;/span&gt;

      &lt;span class="comment spell"&gt;# The runner image's Appx module has no Add-AppxPackage -LicensePath, so provision&lt;/span&gt;
      &lt;span class="comment spell"&gt;# with DISM (which accepts the license) and register the staged package for this user.&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Install MSIX Packaging Tool&lt;/span&gt;
        &lt;span class="property string"&gt;shell&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;powershell&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="punctuation_delimiter string"&gt;|&lt;/span&gt;&lt;span class=string&gt;
          if (Get-AppxPackage -Name 'Microsoft.MsixPackagingTool' -ErrorAction SilentlyContinue) {
            Write-Host 'MSIX Packaging Tool already installed.'
            exit 0
          }
          $work = Join-Path $env:RUNNER_TEMP 'msix-packaging-tool'
          New-Item -ItemType Directory -Path $work -Force | Out-Null
          $bundle = Join-Path $work 'MSIXPackagingTool.msixbundle'
          $license = Join-Path $work 'MSIXPackagingTool.License.xml'
          Invoke-WebRequest -Uri 'https://download.microsoft.com/download/e/2/e/e2e923b2-7a3a-4730-969d-ab37001fbb5e/MSIXPackagingtoolv1.2024.405.0.msixbundle' -OutFile $bundle -UseBasicParsing
          Invoke-WebRequest -Uri 'https://download.microsoft.com/download/e/2/e/e2e923b2-7a3a-4730-969d-ab37001fbb5e/MSIXPackagingtoolv1.2024.405.0.License.xml' -OutFile $license -UseBasicParsing
          $capability = Get-WindowsCapability -Online -ErrorAction SilentlyContinue |
            Where-Object { $_.Name -like 'Msix*PackagingTool*Driver*' } |
            Select-Object -First 1
          if ($capability -and $capability.State -ne 'Installed') {
            try {
              Add-WindowsCapability -Online -Name $capability.Name | Out-Null
            }
            catch {
              Write-Warning "Could not install the MSIX Packaging Tool driver capability: $($_.Exception.Message)"
            }
          }
          Add-AppxProvisionedPackage -Online -PackagePath $bundle -LicensePath $license -ErrorAction Stop | Out-Null
          $app = Get-AppxPackage -Name 'Microsoft.MsixPackagingTool' -ErrorAction SilentlyContinue
          if (-not $app) {
            if ((Get-Command Get-AppxPackage).Parameters.ContainsKey('AllUsers')) {
              $app = Get-AppxPackage -AllUsers -Name 'Microsoft.MsixPackagingTool' -ErrorAction SilentlyContinue
            }
            if (-not $app) {
              $staged = Get-ChildItem -Path (Join-Path $env:ProgramFiles 'WindowsApps') -Directory -Filter 'Microsoft.MsixPackagingTool*' -ErrorAction SilentlyContinue |
                Select-Object -First 1
              if ($staged) {
                $app = [pscustomobject]@{ InstallLocation = $staged.FullName }
              }
            }
            if (-not $app -or -not $app.InstallLocation) {
              throw 'MSIX Packaging Tool provisioning did not stage the package.'
            }
            Add-AppxPackage -Register (Join-Path $app.InstallLocation 'AppxManifest.xml') -DisableDevelopmentMode -ErrorAction Stop | Out-Null
          }
          if (-not (Get-AppxPackage -Name 'Microsoft.MsixPackagingTool' -ErrorAction SilentlyContinue)) {
            throw 'MSIX Packaging Tool installation did not register the app package.'
          }&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Convert MSI to MSIX&lt;/span&gt;
        &lt;span class="property string"&gt;shell&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;pwsh&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;MSIX_PUBLISHER&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;'CN=67A9BB80-54AE-4F78-9A81-B2731D7D156C'&lt;/span&gt;
          &lt;span class="property string"&gt;MSIX_PACKAGE_NAME&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;'PratyayMustafi.drawxdraw'&lt;/span&gt;
          &lt;span class="property string"&gt;MSIX_PACKAGE_DISPLAY_NAME&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;'Drawx Draw'&lt;/span&gt;
          &lt;span class="property string"&gt;GITHUB_TOKEN&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ github.token }}&lt;/span&gt;
          &lt;span class="property string"&gt;TAURI_BUNDLE_CREATE_UPDATER_ARTIFACTS&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"false"&lt;/span&gt;
          &lt;span class="property string"&gt;TAURI_SIGNING_PRIVATE_KEY&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}&lt;/span&gt;
          &lt;span class="property string"&gt;TAURI_SIGNING_PRIVATE_KEY_PASSWORD&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}&lt;/span&gt;
          &lt;span class="property string"&gt;SENTRY_AUTH_TOKEN&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.SENTRY_AUTH_TOKEN }}&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="punctuation_delimiter string"&gt;|&lt;/span&gt;&lt;span class=string&gt;
          $extra = @{}
          if ($env:MSIX_PACKAGE_NAME) { $extra['PackageName'] = $env:MSIX_PACKAGE_NAME }
          if ($env:MSIX_PACKAGE_DISPLAY_NAME) { $extra['PackageDisplayName'] = $env:MSIX_PACKAGE_DISPLAY_NAME }
          ./scripts/msi-to-msix.ps1 `
            -MsiPath "src-tauri/target/release/bundle/msi" `
            -OutDir "msix-out" `
            @extra&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Upload MSIX&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/upload-artifact@v7&lt;/span&gt;
        &lt;span class="property string"&gt;with&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;drawx-msix&lt;/span&gt;
          &lt;span class="property string"&gt;path&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;msix-out/*.msix&lt;/span&gt;
          &lt;span class="property string"&gt;if-no-files-found&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;error&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Resolve release tag&lt;/span&gt;
        &lt;span class="property string"&gt;id&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;release&lt;/span&gt;
        &lt;span class="property string"&gt;shell&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;pwsh&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="punctuation_delimiter string"&gt;|&lt;/span&gt;&lt;span class=string&gt;
          $version = (Get-Content -Raw src-tauri/tauri.conf.json | ConvertFrom-Json).version
          "tag=v$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Append -Encoding utf8&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Attach MSIX to release&lt;/span&gt;
        &lt;span class="property string"&gt;shell&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;pwsh&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;GH_TOKEN&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ github.token }}&lt;/span&gt;
          &lt;span class="property string"&gt;TAG&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ steps.release.outputs.tag }}&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="punctuation_delimiter string"&gt;|&lt;/span&gt;&lt;span class=string&gt;
          $ErrorActionPreference = 'Stop'
          $msixFiles = Get-ChildItem -Path msix-out -Filter '*.msix' -File
          if (-not $msixFiles) {
            throw 'No .msix files found in msix-out.'
          }

          # Ensure the release for this version exists.
          $release = gh release view $env:TAG --json id,tagName 2&amp;gt;$null
          if ($LASTEXITCODE -ne 0 -or -not $release) {
            gh release create $env:TAG msix-out/*.msix --title "drawx $env:TAG" --target $env:GITHUB_SHA
            exit $LASTEXITCODE
          }

          foreach ($file in $msixFiles) {
            # Replace any existing asset with the same name.
            gh release upload $env:TAG $file.FullName --clobber
            if ($LASTEXITCODE -ne 0) { throw "Failed to upload $($file.Name)" }
          }
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;7. Example PowerShell script (&lt;code&gt;scripts/msi-to-msix.ps1&lt;/code&gt;)&lt;/h2&gt;&lt;pre&gt;&lt;code class=powershell&gt;&lt;span class=comment&gt;#Requires -Version 5.1&lt;/span&gt;

&lt;span class=comment&gt;&amp;lt;#
.SYNOPSIS
    Repackages a .msi installer into an .msix package.

.DESCRIPTION
    Fills an MSIX Packaging Tool conversion template (defaults come from
    src-tauri/tauri.conf.json), runs `MsixPackagingTool.exe create-package
    --template &amp;lt;template&amp;gt;`, verifies the output and removes the test
    installation the tool leaves behind.

    Requires an elevated console and the MSIX Packaging Tool on the machine
    (it installs the MSI while a driver captures system changes).

    The package is produced unsigned on purpose: for Microsoft Store
    distribution the Store re-signs the package during submission.

.PARAMETER MsiPath
    The .msi file, or a directory containing .msi files (the newest one is used).

.PARAMETER OutDir
    Directory for the .msix and the generated template. Defaults to the MSI's directory.

.PARAMETER PackageName
    MSIX identity name. Must match the package identity reserved in Partner Center.
    Defaults to the tauri.conf.json identifier; can be set via $env:MSIX_PACKAGE_NAME.

.PARAMETER PackageDisplayName
    Name shown to users. Defaults to tauri.conf.json productName.

.PARAMETER PublisherName
    Publisher from Partner Center (CN=...). Defaults to $env:MSIX_PUBLISHER.

.PARAMETER PublisherDisplayName
    Publisher display name. Defaults to tauri.conf.json bundle.publisher.

.PARAMETER PackageVersion
    Four-octet package version (x.y.z.w). Defaults to tauri.conf.json version.

.PARAMETER InstallLocation
    Root folder the MSI installs to (template Installer/@InstallLocation).
    Defaults to the folder resolved from the MSI Directory table.

.PARAMETER ToolPath
    Path to MsixPackagingTool.exe. Discovered automatically when omitted.

.EXAMPLE
    ./scripts/msi-to-msix.ps1 -MsiPath src-tauri/target/release/bundle/msi -OutDir msix-out
#&amp;gt;&lt;/span&gt;

[&lt;span class=type&gt;CmdletBinding&lt;/span&gt;()]
&lt;span class=keyword&gt;param&lt;/span&gt;(
    [&lt;span class=type&gt;Parameter&lt;/span&gt;(Mandatory = &lt;span class=variable&gt;$true&lt;/span&gt;)]
    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$MsiPath&lt;/span&gt;,

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$OutDir&lt;/span&gt; = &lt;span class=string&gt;''&lt;/span&gt;,

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$PackageName&lt;/span&gt; = (&lt;span class=variable&gt;$env:MSIX_PACKAGE_NAME&lt;/span&gt;),

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$PackageDisplayName&lt;/span&gt; = (&lt;span class=variable&gt;$env:MSIX_PACKAGE_DISPLAY_NAME&lt;/span&gt;),

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$PublisherName&lt;/span&gt; = (&lt;span class=variable&gt;$env:MSIX_PUBLISHER&lt;/span&gt;),

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$PublisherDisplayName&lt;/span&gt; = &lt;span class=string&gt;''&lt;/span&gt;,

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$PackageVersion&lt;/span&gt; = &lt;span class=string&gt;''&lt;/span&gt;,

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$InstallLocation&lt;/span&gt; = &lt;span class=string&gt;''&lt;/span&gt;,

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$ToolPath&lt;/span&gt; = &lt;span class=string&gt;''&lt;/span&gt;,

    [&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$TauriConfig&lt;/span&gt; = &lt;span class=string&gt;''&lt;/span&gt;
)

&lt;span class=function&gt;Set-StrictMode&lt;/span&gt; -Version Latest
&lt;span class=variable&gt;$ErrorActionPreference&lt;/span&gt; = &lt;span class="assignvalue string"&gt;'Stop'&lt;/span&gt;

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;ConvertTo-XmlAttributeValue&lt;/span&gt; {
    &lt;span class=keyword&gt;param&lt;/span&gt;([&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$Value&lt;/span&gt;)
    &lt;span class=keyword&gt;return&lt;/span&gt; [&lt;span class=type&gt;System.Security.SecurityElement&lt;/span&gt;]::&lt;span class=function&gt;Escape&lt;/span&gt;(&lt;span class=variable&gt;$Value&lt;/span&gt;)
}

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;ConvertTo-MsixVersion&lt;/span&gt; {
    &lt;span class=comment&gt;# MSIX requires exactly four octets, each 0..65535.&lt;/span&gt;
    &lt;span class=keyword&gt;param&lt;/span&gt;([&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$Version&lt;/span&gt;)

    &lt;span class=variable&gt;$parts&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@(&lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$Version&lt;/span&gt;&lt;span class="array assignvalue"&gt;.&lt;/span&gt;&lt;span class="array assignvalue function"&gt;Trim&lt;/span&gt;&lt;span class="array assignvalue"&gt;() &lt;/span&gt;&lt;span class="array assignvalue operator"&gt;-split&lt;/span&gt;&lt;span class="array assignvalue"&gt; &lt;/span&gt;&lt;span class="array assignvalue string"&gt;'\.'&lt;/span&gt;&lt;span class="array assignvalue"&gt;)&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$parts&lt;/span&gt;.&lt;span class=property&gt;Count&lt;/span&gt; &lt;span class=operator&gt;-gt&lt;/span&gt; &lt;span class=number&gt;4&lt;/span&gt;) {
        &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"Version '&lt;/span&gt;&lt;span class="string variable"&gt;$Version&lt;/span&gt;&lt;span class=string&gt;' has more than 4 components; MSIX requires x.y.z.w."&lt;/span&gt;
    }
    &lt;span class=keyword&gt;while&lt;/span&gt; (&lt;span class=variable&gt;$parts&lt;/span&gt;.&lt;span class=property&gt;Count&lt;/span&gt; &lt;span class=operator&gt;-lt&lt;/span&gt; &lt;span class=number&gt;4&lt;/span&gt;) {
        &lt;span class=variable&gt;$parts&lt;/span&gt; += &lt;span class="assignvalue string"&gt;'0'&lt;/span&gt;
    }

    &lt;span class=variable&gt;$octets&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@()&lt;/span&gt;
    &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$part&lt;/span&gt; in &lt;span class=variable&gt;$parts&lt;/span&gt;) {
        &lt;span class=variable&gt;$number&lt;/span&gt; = &lt;span class="assignvalue number"&gt;0&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; [&lt;span class=type&gt;int&lt;/span&gt;]::&lt;span class=function&gt;TryParse&lt;/span&gt;(&lt;span class=variable&gt;$part&lt;/span&gt;, [&lt;span class=type&gt;ref&lt;/span&gt;] &lt;span class=variable&gt;$number&lt;/span&gt;) &lt;span class=operator&gt;-or&lt;/span&gt; &lt;span class=variable&gt;$number&lt;/span&gt; &lt;span class=operator&gt;-lt&lt;/span&gt; &lt;span class=number&gt;0&lt;/span&gt; &lt;span class=operator&gt;-or&lt;/span&gt; &lt;span class=variable&gt;$number&lt;/span&gt; &lt;span class=operator&gt;-gt&lt;/span&gt; &lt;span class=number&gt;65535&lt;/span&gt;) {
            &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"Version component '&lt;/span&gt;&lt;span class="string variable"&gt;$part&lt;/span&gt;&lt;span class=string&gt;' of '&lt;/span&gt;&lt;span class="string variable"&gt;$Version&lt;/span&gt;&lt;span class=string&gt;' is not a number between 0 and 65535."&lt;/span&gt;
        }
        &lt;span class=variable&gt;$octets&lt;/span&gt; += &lt;span class="assignvalue variable"&gt;$number&lt;/span&gt;
    }
    &lt;span class=keyword&gt;return&lt;/span&gt; (&lt;span class=variable&gt;$octets&lt;/span&gt; &lt;span class=operator&gt;-join&lt;/span&gt; &lt;span class=string&gt;'.'&lt;/span&gt;)
}

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;Assert-Administrator&lt;/span&gt; {
    &lt;span class=variable&gt;$identity&lt;/span&gt; = &lt;span class=assignvalue&gt;[&lt;/span&gt;&lt;span class="assignvalue type"&gt;Security.Principal.WindowsIdentity&lt;/span&gt;&lt;span class=assignvalue&gt;]::&lt;/span&gt;&lt;span class="assignvalue function"&gt;GetCurrent&lt;/span&gt;&lt;span class=assignvalue&gt;()&lt;/span&gt;
    &lt;span class=variable&gt;$principal&lt;/span&gt; = &lt;span class="assignvalue function"&gt;New-Object&lt;/span&gt;&lt;span class=assignvalue&gt; Security.Principal.WindowsPrincipal(&lt;/span&gt;&lt;span class="assignvalue variable"&gt;$identity&lt;/span&gt;&lt;span class=assignvalue&gt;)&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$principal&lt;/span&gt;.&lt;span class=function&gt;IsInRole&lt;/span&gt;([&lt;span class=type&gt;Security.Principal.WindowsBuiltInRole&lt;/span&gt;]::&lt;span class=property&gt;Administrator&lt;/span&gt;)) {
        &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;'Administrator privileges are required: MsixPackagingTool installs the MSI on this machine while capturing the changes.'&lt;/span&gt;
    }
}

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;Find-MsixPackagingTool&lt;/span&gt; {
    &lt;span class=keyword&gt;param&lt;/span&gt;([&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$Explicit&lt;/span&gt;)

    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$Explicit&lt;/span&gt;) {
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$Explicit&lt;/span&gt;)) {
            &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"MsixPackagingTool not found at '&lt;/span&gt;&lt;span class="string variable"&gt;$Explicit&lt;/span&gt;&lt;span class=string&gt;'."&lt;/span&gt;
        }
        &lt;span class=keyword&gt;return&lt;/span&gt; (&lt;span class=function&gt;Resolve-Path&lt;/span&gt; &lt;span class=variable&gt;$Explicit&lt;/span&gt;).&lt;span class=property&gt;Path&lt;/span&gt;
    }

    &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$name&lt;/span&gt; in &lt;span class=array&gt;@(&lt;/span&gt;&lt;span class="array string"&gt;'MsixPackagingTool.exe'&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array string"&gt;'MsixPackagingToolCLI.exe'&lt;/span&gt;&lt;span class=array&gt;)&lt;/span&gt;) {
        &lt;span class=variable&gt;$command&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-Command&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$name&lt;/span&gt;&lt;span class=assignvalue&gt; -ErrorAction SilentlyContinue | &lt;/span&gt;&lt;span class="assignvalue function"&gt;Select-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -First &lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$command&lt;/span&gt;) {
            &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$command&lt;/span&gt;.&lt;span class=property&gt;Path&lt;/span&gt;
        }
    }

    &lt;span class=comment&gt;# Installed as a Microsoft Store / AppX package ("MSIX Packaging Tool").&lt;/span&gt;
    &lt;span class=comment&gt;# Its executable lives under C:\\Program Files\\WindowsApps and is not on PATH,&lt;/span&gt;
    &lt;span class=comment&gt;# so discover it through the package registration instead.&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Get-Command&lt;/span&gt; Get-AppxPackage -ErrorAction SilentlyContinue) {
        &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$packageName&lt;/span&gt; in &lt;span class=array&gt;@(&lt;/span&gt;&lt;span class="array string"&gt;'Microsoft.MsixPackagingTool'&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array string"&gt;'Microsoft.MsixPackagingToolCLI'&lt;/span&gt;&lt;span class=array&gt;)&lt;/span&gt;) {
            &lt;span class=variable&gt;$app&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-AppxPackage&lt;/span&gt;&lt;span class=assignvalue&gt; -Name &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$packageName&lt;/span&gt;&lt;span class=assignvalue&gt; -ErrorAction SilentlyContinue | &lt;/span&gt;&lt;span class="assignvalue function"&gt;Select-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -First &lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;
            &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$app&lt;/span&gt; &lt;span class=operator&gt;-and&lt;/span&gt; &lt;span class=variable&gt;$app&lt;/span&gt;.&lt;span class=property&gt;InstallLocation&lt;/span&gt;) {
                &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$exeName&lt;/span&gt; in &lt;span class=array&gt;@(&lt;/span&gt;&lt;span class="array string"&gt;'MsixPackagingTool.exe'&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array string"&gt;'MsixPackagingToolCLI.exe'&lt;/span&gt;&lt;span class=array&gt;)&lt;/span&gt;) {
                    &lt;span class=variable&gt;$candidate&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$app&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;InstallLocation&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$exeName&lt;/span&gt;
                    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$candidate&lt;/span&gt;) {
                        &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$candidate&lt;/span&gt;
                    }
                }
                &lt;span class=variable&gt;$found&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-ChildItem&lt;/span&gt;&lt;span class=assignvalue&gt; -Path &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$app&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;InstallLocation&lt;/span&gt;&lt;span class=assignvalue&gt; -Filter &lt;/span&gt;&lt;span class="assignvalue string"&gt;'MsixPackagingTool*.exe'&lt;/span&gt;&lt;span class=assignvalue&gt; -ErrorAction SilentlyContinue |
                    &lt;/span&gt;&lt;span class="assignvalue function"&gt;Select-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -First &lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;
                &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$found&lt;/span&gt;) {
                    &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$found&lt;/span&gt;.&lt;span class=property&gt;FullName&lt;/span&gt;
                }
            }
        }
    }

    &lt;span class=comment&gt;# Installed as a Visual Studio individual component ("MSIX Packaging Tool").&lt;/span&gt;
    &lt;span class=variable&gt;$searchRoots&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@()&lt;/span&gt;
    &lt;span class=variable&gt;$programFilesX86&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;${env:ProgramFiles(x86)}&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$programFilesX86&lt;/span&gt;) {
        &lt;span class=variable&gt;$vsInstaller&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$programFilesX86&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;'Microsoft Visual Studio\Installer\vswhere.exe'&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$vsInstaller&lt;/span&gt;) {
            &lt;span class=variable&gt;$vsPath&lt;/span&gt; = &lt;span class="assignvalue operator"&gt;&amp;amp;&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$vsInstaller&lt;/span&gt;&lt;span class=assignvalue&gt; -latest -property installationPath&lt;/span&gt;
            &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$vsPath&lt;/span&gt;) {
                &lt;span class=variable&gt;$searchRoots&lt;/span&gt; += &lt;span class="assignvalue variable"&gt;$vsPath&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;Trim&lt;/span&gt;&lt;span class=assignvalue&gt;()&lt;/span&gt;
            }
        }
    }
    &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$programFiles&lt;/span&gt; in &lt;span class=array&gt;@(&lt;/span&gt;&lt;span class="array variable"&gt;$env:ProgramFiles&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array variable"&gt;${env:ProgramFiles(x86)}&lt;/span&gt;&lt;span class=array&gt;)&lt;/span&gt;) {
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$programFiles&lt;/span&gt;) {
            &lt;span class=variable&gt;$vsRoot&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$programFiles&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;'Microsoft Visual Studio'&lt;/span&gt;
            &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$vsRoot&lt;/span&gt;) {
                &lt;span class=variable&gt;$searchRoots&lt;/span&gt; += &lt;span class="assignvalue variable"&gt;$vsRoot&lt;/span&gt;
            }
        }
    }

    &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$root&lt;/span&gt; in (&lt;span class=variable&gt;$searchRoots&lt;/span&gt; | &lt;span class=function&gt;Select-Object&lt;/span&gt; -Unique)) {
        &lt;span class=variable&gt;$found&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-ChildItem&lt;/span&gt;&lt;span class=assignvalue&gt; -Path &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$root&lt;/span&gt;&lt;span class=assignvalue&gt; -Filter &lt;/span&gt;&lt;span class="assignvalue string"&gt;'MsixPackagingTool*.exe'&lt;/span&gt;&lt;span class=assignvalue&gt; -Recurse -ErrorAction SilentlyContinue |
            &lt;/span&gt;&lt;span class="assignvalue function"&gt;Select-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -First &lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$found&lt;/span&gt;) {
            &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$found&lt;/span&gt;.&lt;span class=property&gt;FullName&lt;/span&gt;
        }
    }

    &lt;span class=comment&gt;# Store apps are deployed under %ProgramFiles%\\WindowsApps and are not on PATH.&lt;/span&gt;
    &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$windowsApps&lt;/span&gt; in &lt;span class=array&gt;@((&lt;/span&gt;&lt;span class="array function"&gt;Join-Path&lt;/span&gt;&lt;span class=array&gt; &lt;/span&gt;&lt;span class="array variable"&gt;$env:ProgramFiles&lt;/span&gt;&lt;span class=array&gt; &lt;/span&gt;&lt;span class="array string"&gt;'WindowsApps'&lt;/span&gt;&lt;span class=array&gt;),
                              (&lt;/span&gt;&lt;span class="array function"&gt;Join-Path&lt;/span&gt;&lt;span class=array&gt; &lt;/span&gt;&lt;span class="array variable"&gt;${env:ProgramFiles(x86)}&lt;/span&gt;&lt;span class=array&gt; &lt;/span&gt;&lt;span class="array string"&gt;'WindowsApps'&lt;/span&gt;&lt;span class=array&gt;))&lt;/span&gt;) {
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$windowsApps&lt;/span&gt; &lt;span class=operator&gt;-and&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$windowsApps&lt;/span&gt;)) {
            &lt;span class=variable&gt;$found&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-ChildItem&lt;/span&gt;&lt;span class=assignvalue&gt; -Path &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$windowsApps&lt;/span&gt;&lt;span class=assignvalue&gt; -Filter &lt;/span&gt;&lt;span class="assignvalue string"&gt;'MsixPackagingTool*.exe'&lt;/span&gt;&lt;span class=assignvalue&gt; -Recurse -ErrorAction SilentlyContinue |
                &lt;/span&gt;&lt;span class="assignvalue function"&gt;Select-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -First &lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;
            &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$found&lt;/span&gt;) {
                &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$found&lt;/span&gt;.&lt;span class=property&gt;FullName&lt;/span&gt;
            }
        }
    }

    &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$null&lt;/span&gt;
}

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;Get-DefaultDirName&lt;/span&gt; {
    &lt;span class=comment&gt;# DefaultDir may be "SHORTN~1|Long Name"; the long name wins when present.&lt;/span&gt;
    &lt;span class=keyword&gt;param&lt;/span&gt;([&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$DefaultDir&lt;/span&gt;)

    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$DefaultDir&lt;/span&gt;.&lt;span class=function&gt;Contains&lt;/span&gt;(&lt;span class=string&gt;'|'&lt;/span&gt;)) {
        &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$DefaultDir&lt;/span&gt;.&lt;span class=function&gt;Substring&lt;/span&gt;(&lt;span class=variable&gt;$DefaultDir&lt;/span&gt;.&lt;span class=function&gt;IndexOf&lt;/span&gt;(&lt;span class=string&gt;'|'&lt;/span&gt;) &lt;span class=operator&gt;+&lt;/span&gt; &lt;span class=number&gt;1&lt;/span&gt;)
    }
    &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$DefaultDir&lt;/span&gt;
}

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;Get-MsiDefaultInstallLocation&lt;/span&gt; {
    &lt;span class=comment&gt;# Resolves e.g. "C:\Program Files\My Company\My Product" from the MSI Directory table.&lt;/span&gt;
    &lt;span class=keyword&gt;param&lt;/span&gt;([&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$Path&lt;/span&gt;)

    &lt;span class=variable&gt;$installer&lt;/span&gt; = &lt;span class="assignvalue function"&gt;New-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -ComObject WindowsInstaller.Installer&lt;/span&gt;
    &lt;span class=variable&gt;$database&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$installer&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;OpenDatabase&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue variable"&gt;$Path&lt;/span&gt;&lt;span class=assignvalue&gt;, &lt;/span&gt;&lt;span class="assignvalue number"&gt;0&lt;/span&gt;&lt;span class=assignvalue&gt;)&lt;/span&gt;
    &lt;span class=variable&gt;$view&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$database&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;OpenView&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue string"&gt;'SELECT `Directory`, `Directory_Parent`, `DefaultDir` FROM `Directory`'&lt;/span&gt;&lt;span class=assignvalue&gt;)&lt;/span&gt;
    &lt;span class=variable&gt;$view&lt;/span&gt;.&lt;span class=function&gt;Execute&lt;/span&gt;() | &lt;span class=function&gt;Out-Null&lt;/span&gt;

    &lt;span class=variable&gt;$rows&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@()&lt;/span&gt;
    &lt;span class=keyword&gt;while&lt;/span&gt; (&lt;span class=variable&gt;$record&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$view&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;Fetch&lt;/span&gt;&lt;span class=assignvalue&gt;()&lt;/span&gt;) {
        &lt;span class=variable&gt;$rows&lt;/span&gt; += &lt;span class=assignvalue&gt;[&lt;/span&gt;&lt;span class="assignvalue type"&gt;pscustomobject&lt;/span&gt;&lt;span class=assignvalue&gt;]@{
            Id     = &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$record&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;StringData&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;&lt;span class=assignvalue&gt;)
            Parent = &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$record&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;StringData&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue number"&gt;2&lt;/span&gt;&lt;span class=assignvalue&gt;)
            Name   = &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$record&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;StringData&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue number"&gt;3&lt;/span&gt;&lt;span class=assignvalue&gt;)
        }&lt;/span&gt;
    }
    &lt;span class=variable&gt;$view&lt;/span&gt;.&lt;span class=function&gt;Close&lt;/span&gt;() | &lt;span class=function&gt;Out-Null&lt;/span&gt;

    &lt;span class=variable&gt;$rootId&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$null&lt;/span&gt;
    &lt;span class=variable&gt;$current&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$null&lt;/span&gt;
    &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$candidate&lt;/span&gt; in &lt;span class=array&gt;@(&lt;/span&gt;&lt;span class="array string"&gt;'ProgramFiles64Folder'&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array string"&gt;'ProgramFilesFolder'&lt;/span&gt;&lt;span class=array&gt;)&lt;/span&gt;) {
        &lt;span class=variable&gt;$child&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$rows&lt;/span&gt;&lt;span class=assignvalue&gt; | &lt;/span&gt;&lt;span class="assignvalue function"&gt;Where-Object&lt;/span&gt;&lt;span class=assignvalue&gt; { &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$_&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;Parent&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue operator"&gt;-eq&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$candidate&lt;/span&gt;&lt;span class=assignvalue&gt; } | &lt;/span&gt;&lt;span class="assignvalue function"&gt;Select-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -First &lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$child&lt;/span&gt;) {
            &lt;span class=variable&gt;$rootId&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$candidate&lt;/span&gt;
            &lt;span class=variable&gt;$current&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$child&lt;/span&gt;
            &lt;span class=keyword&gt;break&lt;/span&gt;
        }
    }
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$current&lt;/span&gt;) {
        &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$null&lt;/span&gt;
    }

    &lt;span class=variable&gt;$names&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@()&lt;/span&gt;
    &lt;span class=keyword&gt;while&lt;/span&gt; (&lt;span class=variable&gt;$true&lt;/span&gt;) {
        &lt;span class=variable&gt;$names&lt;/span&gt; += &lt;span class="assignvalue function"&gt;Get-DefaultDirName&lt;/span&gt;&lt;span class=assignvalue&gt; -DefaultDir &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$current&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;Name&lt;/span&gt;
        &lt;span class=variable&gt;$children&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@(&lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$rows&lt;/span&gt;&lt;span class="array assignvalue"&gt; | &lt;/span&gt;&lt;span class="array assignvalue function"&gt;Where-Object&lt;/span&gt;&lt;span class="array assignvalue"&gt; { &lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$_&lt;/span&gt;&lt;span class="array assignvalue"&gt;.&lt;/span&gt;&lt;span class="array assignvalue property"&gt;Parent&lt;/span&gt;&lt;span class="array assignvalue"&gt; &lt;/span&gt;&lt;span class="array assignvalue operator"&gt;-eq&lt;/span&gt;&lt;span class="array assignvalue"&gt; &lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$current&lt;/span&gt;&lt;span class="array assignvalue"&gt;.&lt;/span&gt;&lt;span class="array assignvalue property"&gt;Id&lt;/span&gt;&lt;span class="array assignvalue"&gt; })&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$children&lt;/span&gt;.&lt;span class=property&gt;Count&lt;/span&gt; &lt;span class=operator&gt;-ne&lt;/span&gt; &lt;span class=number&gt;1&lt;/span&gt;) {
            &lt;span class=keyword&gt;break&lt;/span&gt;
        }
        &lt;span class=variable&gt;$current&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$children&lt;/span&gt;&lt;span class=assignvalue&gt;[&lt;/span&gt;&lt;span class="assignvalue number"&gt;0&lt;/span&gt;&lt;span class=assignvalue&gt;]&lt;/span&gt;
    }

    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$rootId&lt;/span&gt; &lt;span class=operator&gt;-eq&lt;/span&gt; &lt;span class=string&gt;'ProgramFiles64Folder'&lt;/span&gt;) {
        &lt;span class=variable&gt;$base&lt;/span&gt; = &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;${env:ProgramW6432}&lt;/span&gt;) { &lt;span class=variable&gt;${env:ProgramW6432}&lt;/span&gt; } &lt;span class=keyword&gt;else&lt;/span&gt; { &lt;span class=variable&gt;$env:ProgramFiles&lt;/span&gt; }
    }
    &lt;span class=keyword&gt;else&lt;/span&gt; {
        &lt;span class=variable&gt;$base&lt;/span&gt; = &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;${env:ProgramFiles(x86)}&lt;/span&gt;) { &lt;span class=variable&gt;${env:ProgramFiles(x86)}&lt;/span&gt; } &lt;span class=keyword&gt;else&lt;/span&gt; { &lt;span class=variable&gt;$env:ProgramFiles&lt;/span&gt; }
    }

    &lt;span class=keyword&gt;return&lt;/span&gt; (&lt;span class=function&gt;Join-Path&lt;/span&gt; &lt;span class=variable&gt;$base&lt;/span&gt; (&lt;span class=variable&gt;$names&lt;/span&gt; &lt;span class=operator&gt;-join&lt;/span&gt; &lt;span class=string&gt;'\'&lt;/span&gt;))
}

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;Read-MsiInfo&lt;/span&gt; {
    &lt;span class=keyword&gt;param&lt;/span&gt;([&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$Path&lt;/span&gt;)

    &lt;span class=variable&gt;$info&lt;/span&gt; = &lt;span class=assignvalue&gt;[&lt;/span&gt;&lt;span class="assignvalue type"&gt;pscustomobject&lt;/span&gt;&lt;span class=assignvalue&gt;]@{
        ProductCode     = &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$null&lt;/span&gt;&lt;span class=assignvalue&gt;
        InstallLocation = &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$null&lt;/span&gt;&lt;span class=assignvalue&gt;
    }&lt;/span&gt;

    &lt;span class=comment&gt;# COM calls can emit stray pipeline output (e.g. View.Close()); capture the&lt;/span&gt;
    &lt;span class=comment&gt;# reads so this function returns exactly one object.&lt;/span&gt;
    &lt;span class=variable&gt;$null&lt;/span&gt; = &lt;span class="assignvalue operator"&gt;&amp;amp;&lt;/span&gt;&lt;span class=assignvalue&gt; {
        &lt;/span&gt;&lt;span class="assignvalue keyword"&gt;try&lt;/span&gt;&lt;span class=assignvalue&gt; {
            &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$installer&lt;/span&gt;&lt;span class=assignvalue&gt; = &lt;/span&gt;&lt;span class="assignvalue function"&gt;New-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -ComObject WindowsInstaller.Installer&lt;/span&gt;
            &lt;span class=variable&gt;$database&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$installer&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;OpenDatabase&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue variable"&gt;$Path&lt;/span&gt;&lt;span class=assignvalue&gt;, &lt;/span&gt;&lt;span class="assignvalue number"&gt;0&lt;/span&gt;&lt;span class=assignvalue&gt;)&lt;/span&gt;
            &lt;span class=variable&gt;$view&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$database&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;OpenView&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue string"&gt;'SELECT `Value` FROM `Property` WHERE `Property` = ''ProductCode'''&lt;/span&gt;&lt;span class=assignvalue&gt;)&lt;/span&gt;
            &lt;span class=variable&gt;$view&lt;/span&gt;.&lt;span class=function&gt;Execute&lt;/span&gt;() | &lt;span class=function&gt;Out-Null&lt;/span&gt;
            &lt;span class=variable&gt;$record&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$view&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;Fetch&lt;/span&gt;&lt;span class=assignvalue&gt;()&lt;/span&gt;
            &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$record&lt;/span&gt;) {
                &lt;span class=variable&gt;$info&lt;/span&gt;.&lt;span class=property&gt;ProductCode&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$record&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;StringData&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;&lt;span class=assignvalue&gt;)&lt;/span&gt;
            }
            &lt;span class=variable&gt;$view&lt;/span&gt;.&lt;span class=function&gt;Close&lt;/span&gt;() | &lt;span class=function&gt;Out-Null&lt;/span&gt;
        }
        &lt;span class=keyword&gt;catch&lt;/span&gt; {
            &lt;span class=function&gt;Write-Warning&lt;/span&gt; &lt;span class=string&gt;"Could not read the ProductCode from the MSI: $(&lt;/span&gt;&lt;span class="string variable"&gt;$_&lt;/span&gt;&lt;span class=string&gt;.&lt;/span&gt;&lt;span class="property string"&gt;Exception&lt;/span&gt;&lt;span class=string&gt;.&lt;/span&gt;&lt;span class="property string"&gt;Message&lt;/span&gt;&lt;span class=string&gt;)"&lt;/span&gt;
        }

        &lt;span class=keyword&gt;try&lt;/span&gt; {
            &lt;span class=variable&gt;$info&lt;/span&gt;.&lt;span class=property&gt;InstallLocation&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-MsiDefaultInstallLocation&lt;/span&gt;&lt;span class=assignvalue&gt; -Path &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$Path&lt;/span&gt;
        }
        &lt;span class=keyword&gt;catch&lt;/span&gt; {
            &lt;span class=function&gt;Write-Warning&lt;/span&gt; &lt;span class=string&gt;"Could not resolve the install folder from the MSI: $(&lt;/span&gt;&lt;span class="string variable"&gt;$_&lt;/span&gt;&lt;span class=string&gt;.&lt;/span&gt;&lt;span class="property string"&gt;Exception&lt;/span&gt;&lt;span class=string&gt;.&lt;/span&gt;&lt;span class="property string"&gt;Message&lt;/span&gt;&lt;span class=string&gt;)"&lt;/span&gt;
        }
    }

    &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$info&lt;/span&gt;
}

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;Test-MsiInstalled&lt;/span&gt; {
    &lt;span class=keyword&gt;param&lt;/span&gt;([&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$ProductCode&lt;/span&gt;)

    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$ProductCode&lt;/span&gt;) {
        &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$false&lt;/span&gt;
    }
    &lt;span class=variable&gt;$uninstallKeys&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@(
        &lt;/span&gt;&lt;span class="array assignvalue string"&gt;"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\&lt;/span&gt;&lt;span class="array assignvalue string variable"&gt;$ProductCode&lt;/span&gt;&lt;span class="array assignvalue string"&gt;"&lt;/span&gt;&lt;span class="array assignvalue"&gt;,
        &lt;/span&gt;&lt;span class="array assignvalue string"&gt;"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\&lt;/span&gt;&lt;span class="array assignvalue string variable"&gt;$ProductCode&lt;/span&gt;&lt;span class="array assignvalue string"&gt;"&lt;/span&gt;&lt;span class="array assignvalue"&gt;
    )&lt;/span&gt;
    &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$key&lt;/span&gt; in &lt;span class=variable&gt;$uninstallKeys&lt;/span&gt;) {
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$key&lt;/span&gt;) {
            &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$true&lt;/span&gt;
        }
    }
    &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$false&lt;/span&gt;
}

&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class=function&gt;Invoke-MsiUninstall&lt;/span&gt; {
    &lt;span class=keyword&gt;param&lt;/span&gt;([&lt;span class=type&gt;string&lt;/span&gt;] &lt;span class=variable&gt;$Target&lt;/span&gt;)

    &lt;span class=variable&gt;$arguments&lt;/span&gt; = &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$Target&lt;/span&gt;.&lt;span class=function&gt;StartsWith&lt;/span&gt;(&lt;span class=string&gt;'{'&lt;/span&gt;)) {
        &lt;span class=string&gt;"/x &lt;/span&gt;&lt;span class="string variable"&gt;$Target&lt;/span&gt;&lt;span class=string&gt; /qn /norestart"&lt;/span&gt;
    }
    &lt;span class=function&gt;else&lt;/span&gt; {
        &lt;span class=string&gt;"/x `"&lt;/span&gt;&lt;span class="string variable"&gt;$Target&lt;/span&gt;&lt;span class=string&gt;`" /qn /norestart"&lt;/span&gt;
    }
    &lt;span class=variable&gt;$process&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Start-Process&lt;/span&gt;&lt;span class=assignvalue&gt; -FilePath &lt;/span&gt;&lt;span class="assignvalue string"&gt;'msiexec.exe'&lt;/span&gt;&lt;span class=assignvalue&gt; -ArgumentList &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$arguments&lt;/span&gt;&lt;span class=assignvalue&gt; -Wait -PassThru -WindowStyle Hidden&lt;/span&gt;
    &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=variable&gt;$process&lt;/span&gt;.&lt;span class=property&gt;ExitCode&lt;/span&gt;
}

&lt;span class=comment&gt;# --- Resolve identity defaults ------------------------------------------------&lt;/span&gt;

&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$TauriConfig&lt;/span&gt;) {
    &lt;span class=variable&gt;$TauriConfig&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$PSScriptRoot&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;'..\src-tauri\tauri.conf.json'&lt;/span&gt;
}

&lt;span class=variable&gt;$tauri&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$null&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$TauriConfig&lt;/span&gt;) {
    &lt;span class=variable&gt;$tauri&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-Content&lt;/span&gt;&lt;span class=assignvalue&gt; -Path &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$TauriConfig&lt;/span&gt;&lt;span class=assignvalue&gt; -Raw | &lt;/span&gt;&lt;span class="assignvalue function"&gt;ConvertFrom-Json&lt;/span&gt;
}
&lt;span class=keyword&gt;else&lt;/span&gt; {
    &lt;span class=function&gt;Write-Warning&lt;/span&gt; &lt;span class=string&gt;"tauri.conf.json not found at '&lt;/span&gt;&lt;span class="string variable"&gt;$TauriConfig&lt;/span&gt;&lt;span class=string&gt;'; identity defaults are unavailable."&lt;/span&gt;
}

&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PackageName&lt;/span&gt; &lt;span class=operator&gt;-and&lt;/span&gt; &lt;span class=variable&gt;$tauri&lt;/span&gt;) { &lt;span class=variable&gt;$PackageName&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$tauri&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;identifier&lt;/span&gt; }
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PackageDisplayName&lt;/span&gt; &lt;span class=operator&gt;-and&lt;/span&gt; &lt;span class=variable&gt;$tauri&lt;/span&gt;) { &lt;span class=variable&gt;$PackageDisplayName&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$tauri&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;productName&lt;/span&gt; }
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PublisherDisplayName&lt;/span&gt; &lt;span class=operator&gt;-and&lt;/span&gt; &lt;span class=variable&gt;$tauri&lt;/span&gt;) { &lt;span class=variable&gt;$PublisherDisplayName&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$tauri&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;bundle&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;publisher&lt;/span&gt; }
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PackageVersion&lt;/span&gt; &lt;span class=operator&gt;-and&lt;/span&gt; &lt;span class=variable&gt;$tauri&lt;/span&gt;) { &lt;span class=variable&gt;$PackageVersion&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$tauri&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;version&lt;/span&gt; }

&lt;span class=variable&gt;$missing&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@()&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PackageName&lt;/span&gt;) { &lt;span class=variable&gt;$missing&lt;/span&gt; += &lt;span class="assignvalue string"&gt;'-PackageName (or $env:MSIX_PACKAGE_NAME, or tauri identifier)'&lt;/span&gt; }
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PackageDisplayName&lt;/span&gt;) { &lt;span class=variable&gt;$missing&lt;/span&gt; += &lt;span class="assignvalue string"&gt;'-PackageDisplayName (or tauri productName)'&lt;/span&gt; }
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PublisherName&lt;/span&gt;) { &lt;span class=variable&gt;$missing&lt;/span&gt; += &lt;span class="assignvalue string"&gt;'-PublisherName (or $env:MSIX_PUBLISHER, e.g. CN=67A9BB80-...)'&lt;/span&gt; }
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PublisherDisplayName&lt;/span&gt;) { &lt;span class=variable&gt;$missing&lt;/span&gt; += &lt;span class="assignvalue string"&gt;'-PublisherDisplayName (or tauri bundle.publisher)'&lt;/span&gt; }
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$PackageVersion&lt;/span&gt;) { &lt;span class=variable&gt;$missing&lt;/span&gt; += &lt;span class="assignvalue string"&gt;'-PackageVersion (or tauri version)'&lt;/span&gt; }
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$missing&lt;/span&gt;.&lt;span class=property&gt;Count&lt;/span&gt; &lt;span class=operator&gt;-gt&lt;/span&gt; &lt;span class=number&gt;0&lt;/span&gt;) {
    &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"Missing required package identity values:`n  $(&lt;/span&gt;&lt;span class="string variable"&gt;$missing&lt;/span&gt;&lt;span class=string&gt; &lt;/span&gt;&lt;span class="operator string"&gt;-join&lt;/span&gt;&lt;span class=string&gt; &lt;/span&gt;&lt;span class=string&gt;"`n  "&lt;/span&gt;)"
}

&lt;span class=variable&gt;$PublisherName&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$PublisherName&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;Trim&lt;/span&gt;&lt;span class=assignvalue&gt;()&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$PublisherName&lt;/span&gt; &lt;span class=operator&gt;-notlike&lt;/span&gt; &lt;span class=string&gt;'CN=*'&lt;/span&gt;) {
    &lt;span class=variable&gt;$PublisherName&lt;/span&gt; = &lt;span class="assignvalue string"&gt;"CN=&lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$PublisherName&lt;/span&gt;&lt;span class="assignvalue string"&gt;"&lt;/span&gt;
}
&lt;span class=variable&gt;$PackageVersion&lt;/span&gt; = &lt;span class="assignvalue function"&gt;ConvertTo-MsixVersion&lt;/span&gt;&lt;span class=assignvalue&gt; -Version &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$PackageVersion&lt;/span&gt;

&lt;span class=comment&gt;# --- Resolve the MSI ----------------------------------------------------------&lt;/span&gt;

&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$MsiPath&lt;/span&gt; -PathType Container) {
    &lt;span class=variable&gt;$msi&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-ChildItem&lt;/span&gt;&lt;span class=assignvalue&gt; -Path &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$MsiPath&lt;/span&gt;&lt;span class=assignvalue&gt; -Filter &lt;/span&gt;&lt;span class="assignvalue string"&gt;'*.msi'&lt;/span&gt;&lt;span class=assignvalue&gt; | &lt;/span&gt;&lt;span class="assignvalue function"&gt;Sort-Object&lt;/span&gt;&lt;span class=assignvalue&gt; LastWriteTime -Descending | &lt;/span&gt;&lt;span class="assignvalue function"&gt;Select-Object&lt;/span&gt;&lt;span class=assignvalue&gt; -First &lt;/span&gt;&lt;span class="assignvalue number"&gt;1&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$msi&lt;/span&gt;) {
        &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"No .msi file found in '&lt;/span&gt;&lt;span class="string variable"&gt;$MsiPath&lt;/span&gt;&lt;span class=string&gt;'."&lt;/span&gt;
    }
}
&lt;span class=keyword&gt;elseif&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$MsiPath&lt;/span&gt; -PathType Leaf) {
    &lt;span class=variable&gt;$msi&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-Item&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$MsiPath&lt;/span&gt;
}
&lt;span class=keyword&gt;else&lt;/span&gt; {
    &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"MSI path '&lt;/span&gt;&lt;span class="string variable"&gt;$MsiPath&lt;/span&gt;&lt;span class=string&gt;' does not exist."&lt;/span&gt;
}

&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$OutDir&lt;/span&gt;) {
    &lt;span class=variable&gt;$OutDir&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$msi&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;DirectoryName&lt;/span&gt;
}
&lt;span class=function&gt;New-Item&lt;/span&gt; -ItemType Directory -Path &lt;span class=variable&gt;$OutDir&lt;/span&gt; -Force | &lt;span class=function&gt;Out-Null&lt;/span&gt;
&lt;span class=variable&gt;$OutDir&lt;/span&gt; = &lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue function"&gt;Resolve-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$OutDir&lt;/span&gt;&lt;span class=assignvalue&gt;).&lt;/span&gt;&lt;span class="assignvalue property"&gt;Path&lt;/span&gt;

&lt;span class=variable&gt;$baseName&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$msi&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;BaseName&lt;/span&gt;
&lt;span class=variable&gt;$packagePath&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$OutDir&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;"&lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$baseName&lt;/span&gt;&lt;span class="assignvalue string"&gt;.msix"&lt;/span&gt;
&lt;span class=variable&gt;$templatePath&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$OutDir&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;"&lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$baseName&lt;/span&gt;&lt;span class="assignvalue string"&gt;.msix.template.xml"&lt;/span&gt;
&lt;span class=variable&gt;$commandLineTemplatePath&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$OutDir&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;"&lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$baseName&lt;/span&gt;&lt;span class="assignvalue string"&gt;.msix.g.xml"&lt;/span&gt;

&lt;span class=function&gt;Assert-Administrator&lt;/span&gt;

&lt;span class=variable&gt;$tool&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Find-MsixPackagingTool&lt;/span&gt;&lt;span class=assignvalue&gt; -Explicit &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$ToolPath&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$tool&lt;/span&gt;) {
    &lt;span class=keyword&gt;throw&lt;/span&gt; (&lt;span class=string&gt;"MsixPackagingTool.exe was not found. Install the MSIX Packaging Tool "&lt;/span&gt; &lt;span class=operator&gt;+&lt;/span&gt;
           &lt;span class=string&gt;"(Visual Studio individual component or Microsoft Store app), or pass -ToolPath."&lt;/span&gt;)
}

&lt;span class=comment&gt;# --- MSI metadata -------------------------------------------------------------&lt;/span&gt;

&lt;span class=variable&gt;$msiInfo&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Read-MsiInfo&lt;/span&gt;&lt;span class=assignvalue&gt; -Path &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$msi&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;FullName&lt;/span&gt;
&lt;span class=variable&gt;$productCode&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$msiInfo&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;ProductCode&lt;/span&gt;

&lt;span class=variable&gt;$effectiveInstallLocation&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$InstallLocation&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; &lt;span class=variable&gt;$effectiveInstallLocation&lt;/span&gt;) {
    &lt;span class=variable&gt;$effectiveInstallLocation&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$msiInfo&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;InstallLocation&lt;/span&gt;
}

&lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"MSI               : $(&lt;/span&gt;&lt;span class="string variable"&gt;$msi&lt;/span&gt;&lt;span class=string&gt;.&lt;/span&gt;&lt;span class="property string"&gt;FullName&lt;/span&gt;&lt;span class=string&gt;)"&lt;/span&gt;
&lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"MSIX Packaging    : &lt;/span&gt;&lt;span class="string variable"&gt;$tool&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
&lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"Package           : &lt;/span&gt;&lt;span class="string variable"&gt;$PackageName&lt;/span&gt;&lt;span class=string&gt; (&lt;/span&gt;&lt;span class="string variable"&gt;$PackageDisplayName&lt;/span&gt;&lt;span class=string&gt;) v&lt;/span&gt;&lt;span class="string variable"&gt;$PackageVersion&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
&lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"Publisher         : &lt;/span&gt;&lt;span class="string variable"&gt;$PublisherName&lt;/span&gt;&lt;span class=string&gt; (&lt;/span&gt;&lt;span class="string variable"&gt;$PublisherDisplayName&lt;/span&gt;&lt;span class=string&gt;)"&lt;/span&gt;
&lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"Install location  : $(&lt;/span&gt;&lt;span class="keyword string"&gt;if&lt;/span&gt;&lt;span class=string&gt; (&lt;/span&gt;&lt;span class="string variable"&gt;$effectiveInstallLocation&lt;/span&gt;&lt;span class=string&gt;) { &lt;/span&gt;&lt;span class="string variable"&gt;$effectiveInstallLocation&lt;/span&gt;&lt;span class=string&gt; } &lt;/span&gt;&lt;span class="keyword string"&gt;else&lt;/span&gt;&lt;span class=string&gt; { &lt;/span&gt;&lt;span class=string&gt;'&amp;lt;not set&amp;gt;'&lt;/span&gt; })"
&lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"Output            : &lt;/span&gt;&lt;span class="string variable"&gt;$packagePath&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;

&lt;span class=comment&gt;# --- Conversion template ------------------------------------------------------&lt;/span&gt;

&lt;span class=variable&gt;$installLocationAttribute&lt;/span&gt; = &lt;span class="assignvalue string"&gt;''&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$effectiveInstallLocation&lt;/span&gt;) {
    &lt;span class=variable&gt;$installLocationAttribute&lt;/span&gt; = &lt;span class="assignvalue string"&gt;' InstallLocation="'&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue operator"&gt;+&lt;/span&gt;&lt;span class=assignvalue&gt; (&lt;/span&gt;&lt;span class="assignvalue function"&gt;ConvertTo-XmlAttributeValue&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$effectiveInstallLocation&lt;/span&gt;&lt;span class=assignvalue&gt;) &lt;/span&gt;&lt;span class="assignvalue operator"&gt;+&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;'"'&lt;/span&gt;
}

&lt;span class=variable&gt;$templateXml&lt;/span&gt; = &lt;span class="assignvalue string"&gt;@"
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;MsixPackagingToolTemplate xmlns="http://schemas.microsoft.com/appx/msixpackagingtool/template/2018"&amp;gt;
    &amp;lt;Settings AllowTelemetry="false" ApplyAllPrepareComputerFixes="true" GenerateCommandLineFile="true" AllowPromptForPassword="false" EnforceMicrosoftStoreVersioningRequirements="false" /&amp;gt;
    &amp;lt;SaveLocation PackagePath="$(&lt;/span&gt;&lt;span class="assignvalue function string"&gt;ConvertTo-XmlAttributeValue&lt;/span&gt;&lt;span class="assignvalue string"&gt; &lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$packagePath&lt;/span&gt;&lt;span class="assignvalue string"&gt;)" TemplatePath="$(&lt;/span&gt;&lt;span class="assignvalue function string"&gt;ConvertTo-XmlAttributeValue&lt;/span&gt;&lt;span class="assignvalue string"&gt; &lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$commandLineTemplatePath&lt;/span&gt;&lt;span class="assignvalue string"&gt;)" /&amp;gt;
    &amp;lt;Installer Path="$(&lt;/span&gt;&lt;span class="assignvalue function string"&gt;ConvertTo-XmlAttributeValue&lt;/span&gt;&lt;span class="assignvalue string"&gt; &lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$msi&lt;/span&gt;&lt;span class="assignvalue string"&gt;.&lt;/span&gt;&lt;span class="assignvalue property string"&gt;FullName&lt;/span&gt;&lt;span class="assignvalue string"&gt;)"&lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$installLocationAttribute&lt;/span&gt;&lt;span class="assignvalue string"&gt; /&amp;gt;
    &amp;lt;PackageInformation PackageName="$(&lt;/span&gt;&lt;span class="assignvalue function string"&gt;ConvertTo-XmlAttributeValue&lt;/span&gt;&lt;span class="assignvalue string"&gt; &lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$PackageName&lt;/span&gt;&lt;span class="assignvalue string"&gt;)" PackageDisplayName="$(&lt;/span&gt;&lt;span class="assignvalue function string"&gt;ConvertTo-XmlAttributeValue&lt;/span&gt;&lt;span class="assignvalue string"&gt; &lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$PackageDisplayName&lt;/span&gt;&lt;span class="assignvalue string"&gt;)" PublisherName="$(&lt;/span&gt;&lt;span class="assignvalue function string"&gt;ConvertTo-XmlAttributeValue&lt;/span&gt;&lt;span class="assignvalue string"&gt; &lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$PublisherName&lt;/span&gt;&lt;span class="assignvalue string"&gt;)" PublisherDisplayName="$(&lt;/span&gt;&lt;span class="assignvalue function string"&gt;ConvertTo-XmlAttributeValue&lt;/span&gt;&lt;span class="assignvalue string"&gt; &lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$PublisherDisplayName&lt;/span&gt;&lt;span class="assignvalue string"&gt;)" Version="&lt;/span&gt;&lt;span class="assignvalue string variable"&gt;$PackageVersion&lt;/span&gt;&lt;span class="assignvalue string"&gt;" /&amp;gt;
&amp;lt;/MsixPackagingToolTemplate&amp;gt;
"@&lt;/span&gt;

&lt;span class=function&gt;Set-Content&lt;/span&gt; -Path &lt;span class=variable&gt;$templatePath&lt;/span&gt; -Value &lt;span class=variable&gt;$templateXml&lt;/span&gt; -Encoding UTF8

&lt;span class=comment&gt;# --- Convert ------------------------------------------------------------------&lt;/span&gt;

&lt;span class=keyword&gt;try&lt;/span&gt; {
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-MsiInstalled&lt;/span&gt; -ProductCode &lt;span class=variable&gt;$productCode&lt;/span&gt;) {
        &lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"Removing a previous installation (&lt;/span&gt;&lt;span class="string variable"&gt;$productCode&lt;/span&gt;&lt;span class=string&gt;)..."&lt;/span&gt;
        &lt;span class=variable&gt;$exitCode&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Invoke-MsiUninstall&lt;/span&gt;&lt;span class=assignvalue&gt; -Target &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$productCode&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$exitCode&lt;/span&gt; &lt;span class=operator&gt;-notin&lt;/span&gt; &lt;span class=array&gt;@(&lt;/span&gt;&lt;span class="array number"&gt;0&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array number"&gt;1605&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array number"&gt;1641&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array number"&gt;3010&lt;/span&gt;&lt;span class=array&gt;)&lt;/span&gt;) {
            &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"Pre-conversion uninstall failed with msiexec exit code &lt;/span&gt;&lt;span class="string variable"&gt;$exitCode&lt;/span&gt;&lt;span class=string&gt;."&lt;/span&gt;
        }
    }

    &lt;span class=function&gt;Remove-Item&lt;/span&gt; -Path &lt;span class=variable&gt;$packagePath&lt;/span&gt; -Force -ErrorAction SilentlyContinue

    &lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"Running: &lt;/span&gt;&lt;span class="string variable"&gt;$tool&lt;/span&gt;&lt;span class=string&gt; create-package --template &lt;/span&gt;&lt;span class="string variable"&gt;$templatePath&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
    &lt;span class=operator&gt;&amp;amp;&lt;/span&gt; &lt;span class=variable&gt;$tool&lt;/span&gt; create-package --template &lt;span class=variable&gt;$templatePath&lt;/span&gt;
    &lt;span class=variable&gt;$exitCode&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$LASTEXITCODE&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$exitCode&lt;/span&gt; &lt;span class=operator&gt;-ne&lt;/span&gt; &lt;span class=number&gt;0&lt;/span&gt;) {
        &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"MsixPackagingTool failed with exit code &lt;/span&gt;&lt;span class="string variable"&gt;$exitCode&lt;/span&gt;&lt;span class=string&gt;."&lt;/span&gt;
    }

    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=operator&gt;-not&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; &lt;span class=variable&gt;$packagePath&lt;/span&gt;)) {
        &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"Conversion reported success but '&lt;/span&gt;&lt;span class="string variable"&gt;$packagePath&lt;/span&gt;&lt;span class=string&gt;' was not created. Check the tool output above."&lt;/span&gt;
    }

    &lt;span class=comment&gt;# --- Bump TargetDeviceFamily MinVersion -------------------------------&lt;/span&gt;
    &lt;span class=comment&gt;# Microsoft Store rejects MSIX packages whose TargetDeviceFamily MinVersion&lt;/span&gt;
    &lt;span class=comment&gt;# is &amp;lt;= 10.0.17134.0. The MSIX Packaging Tool may emit a lower MinVersion,&lt;/span&gt;
    &lt;span class=comment&gt;# so repack the package with a compliant MinVersion using makeappx.&lt;/span&gt;
    &lt;span class=variable&gt;$makeAppx&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$null&lt;/span&gt;
    &lt;span class=variable&gt;$sdkRoot&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;${env:ProgramFiles(x86)}&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;'Windows Kits\10\bin'&lt;/span&gt;
    &lt;span class=variable&gt;$sdkCandidates&lt;/span&gt; = &lt;span class="array assignvalue"&gt;@(
        &lt;/span&gt;&lt;span class="array assignvalue function"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="array assignvalue"&gt; -LiteralPath &lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$sdkRoot&lt;/span&gt;&lt;span class="array assignvalue"&gt; -Directory -ErrorAction SilentlyContinue |
            &lt;/span&gt;&lt;span class="array assignvalue function"&gt;Where-Object&lt;/span&gt;&lt;span class="array assignvalue"&gt; { &lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$_&lt;/span&gt;&lt;span class="array assignvalue"&gt;.&lt;/span&gt;&lt;span class="array assignvalue property"&gt;Name&lt;/span&gt;&lt;span class="array assignvalue"&gt; &lt;/span&gt;&lt;span class="array assignvalue operator"&gt;-match&lt;/span&gt;&lt;span class="array assignvalue"&gt; &lt;/span&gt;&lt;span class="array assignvalue string"&gt;'^\d+\.\d+\.\d+\.\d+$'&lt;/span&gt;&lt;span class="array assignvalue"&gt; } |
            &lt;/span&gt;&lt;span class="array assignvalue function"&gt;Sort-Object&lt;/span&gt;&lt;span class="array assignvalue"&gt; { [&lt;/span&gt;&lt;span class="array assignvalue type"&gt;version&lt;/span&gt;&lt;span class="array assignvalue"&gt;]&lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$_&lt;/span&gt;&lt;span class="array assignvalue"&gt;.&lt;/span&gt;&lt;span class="array assignvalue property"&gt;Name&lt;/span&gt;&lt;span class="array assignvalue"&gt; } -Descending |
            &lt;/span&gt;&lt;span class="array assignvalue function"&gt;ForEach-Object&lt;/span&gt;&lt;span class="array assignvalue"&gt; { &lt;/span&gt;&lt;span class="array assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class="array assignvalue"&gt; &lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$_&lt;/span&gt;&lt;span class="array assignvalue"&gt;.&lt;/span&gt;&lt;span class="array assignvalue property"&gt;FullName&lt;/span&gt;&lt;span class="array assignvalue"&gt; &lt;/span&gt;&lt;span class="array assignvalue string"&gt;'x64\makeappx.exe'&lt;/span&gt;&lt;span class="array assignvalue"&gt; } |
            &lt;/span&gt;&lt;span class="array assignvalue function"&gt;Where-Object&lt;/span&gt;&lt;span class="array assignvalue"&gt; { &lt;/span&gt;&lt;span class="array assignvalue function"&gt;Test-Path&lt;/span&gt;&lt;span class="array assignvalue"&gt; -LiteralPath &lt;/span&gt;&lt;span class="array assignvalue variable"&gt;$_&lt;/span&gt;&lt;span class="array assignvalue"&gt; }
    )&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$sdkCandidates&lt;/span&gt;.&lt;span class=property&gt;Count&lt;/span&gt;) { &lt;span class=variable&gt;$makeAppx&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$sdkCandidates&lt;/span&gt;&lt;span class=assignvalue&gt;[&lt;/span&gt;&lt;span class="assignvalue number"&gt;0&lt;/span&gt;&lt;span class=assignvalue&gt;]&lt;/span&gt; }

    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$makeAppx&lt;/span&gt;) {
        &lt;span class=variable&gt;$unpackDir&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$env:TEMP&lt;/span&gt;&lt;span class=assignvalue&gt; (&lt;/span&gt;&lt;span class="assignvalue string"&gt;"drawx-msix-"&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue operator"&gt;+&lt;/span&gt;&lt;span class=assignvalue&gt; [&lt;/span&gt;&lt;span class="assignvalue type"&gt;Guid&lt;/span&gt;&lt;span class=assignvalue&gt;]::&lt;/span&gt;&lt;span class="assignvalue function"&gt;NewGuid&lt;/span&gt;&lt;span class=assignvalue&gt;().&lt;/span&gt;&lt;span class="assignvalue function"&gt;ToString&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue string"&gt;'N'&lt;/span&gt;&lt;span class=assignvalue&gt;))&lt;/span&gt;
        &lt;span class=function&gt;New-Item&lt;/span&gt; -ItemType Directory -Path &lt;span class=variable&gt;$unpackDir&lt;/span&gt; -Force | &lt;span class=function&gt;Out-Null&lt;/span&gt;
        &lt;span class=keyword&gt;try&lt;/span&gt; {
            &lt;span class=operator&gt;&amp;amp;&lt;/span&gt; &lt;span class=variable&gt;$makeAppx&lt;/span&gt; unpack /p &lt;span class=variable&gt;$packagePath&lt;/span&gt; /d &lt;span class=variable&gt;$unpackDir&lt;/span&gt; /o | &lt;span class=function&gt;Out-Null&lt;/span&gt;
            &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$LASTEXITCODE&lt;/span&gt; &lt;span class=operator&gt;-ne&lt;/span&gt; &lt;span class=number&gt;0&lt;/span&gt;) { &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"makeappx unpack failed with exit code &lt;/span&gt;&lt;span class="string variable"&gt;$LASTEXITCODE&lt;/span&gt;&lt;span class=string&gt;."&lt;/span&gt; }

            &lt;span class=variable&gt;$manifestPath&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Join-Path&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$unpackDir&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue string"&gt;'AppxManifest.xml'&lt;/span&gt;
            [&lt;span class=type&gt;xml&lt;/span&gt;]&lt;span class=variable&gt;$manifest&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-Content&lt;/span&gt;&lt;span class=assignvalue&gt; -LiteralPath &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$manifestPath&lt;/span&gt;&lt;span class=assignvalue&gt; -Raw&lt;/span&gt;
            &lt;span class=variable&gt;$ns&lt;/span&gt; = &lt;span class=assignvalue&gt;[&lt;/span&gt;&lt;span class="assignvalue type"&gt;Xml.XmlNamespaceManager&lt;/span&gt;&lt;span class=assignvalue&gt;]::&lt;/span&gt;&lt;span class="assignvalue function"&gt;new&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue variable"&gt;$manifest&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue property"&gt;NameTable&lt;/span&gt;&lt;span class=assignvalue&gt;)&lt;/span&gt;
            &lt;span class=variable&gt;$ns&lt;/span&gt;.&lt;span class=function&gt;AddNamespace&lt;/span&gt;(&lt;span class=string&gt;'f'&lt;/span&gt;, &lt;span class=string&gt;'http://schemas.microsoft.com/appx/manifest/foundation/windows10'&lt;/span&gt;)
            &lt;span class=variable&gt;$nodes&lt;/span&gt; = &lt;span class="assignvalue variable"&gt;$manifest&lt;/span&gt;&lt;span class=assignvalue&gt;.&lt;/span&gt;&lt;span class="assignvalue function"&gt;SelectNodes&lt;/span&gt;&lt;span class=assignvalue&gt;(&lt;/span&gt;&lt;span class="assignvalue string"&gt;'/f:Package/f:Dependencies/f:TargetDeviceFamily'&lt;/span&gt;&lt;span class=assignvalue&gt;, &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$ns&lt;/span&gt;&lt;span class=assignvalue&gt;)&lt;/span&gt;
            &lt;span class=keyword&gt;foreach&lt;/span&gt; (&lt;span class=variable&gt;$tdf&lt;/span&gt; in &lt;span class=variable&gt;$nodes&lt;/span&gt;) {
                &lt;span class=keyword&gt;if&lt;/span&gt; ([&lt;span class=type&gt;version&lt;/span&gt;]&lt;span class=variable&gt;$tdf&lt;/span&gt;.&lt;span class=property&gt;MinVersion&lt;/span&gt; &lt;span class=operator&gt;-le&lt;/span&gt; [&lt;span class=type&gt;version&lt;/span&gt;]&lt;span class=string&gt;'10.0.17134.0'&lt;/span&gt;) {
                    &lt;span class=variable&gt;$tdf&lt;/span&gt;.&lt;span class=property&gt;MinVersion&lt;/span&gt; = &lt;span class="assignvalue string"&gt;'10.0.17763.0'&lt;/span&gt;
                }
            }
            &lt;span class=variable&gt;$manifest&lt;/span&gt;.&lt;span class=function&gt;Save&lt;/span&gt;(&lt;span class=variable&gt;$manifestPath&lt;/span&gt;)

            &lt;span class=function&gt;Remove-Item&lt;/span&gt; -Path &lt;span class=variable&gt;$packagePath&lt;/span&gt; -Force
            &lt;span class=operator&gt;&amp;amp;&lt;/span&gt; &lt;span class=variable&gt;$makeAppx&lt;/span&gt; pack /d &lt;span class=variable&gt;$unpackDir&lt;/span&gt; /p &lt;span class=variable&gt;$packagePath&lt;/span&gt; /o | &lt;span class=function&gt;Out-Null&lt;/span&gt;
            &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$LASTEXITCODE&lt;/span&gt; &lt;span class=operator&gt;-ne&lt;/span&gt; &lt;span class=number&gt;0&lt;/span&gt;) { &lt;span class=keyword&gt;throw&lt;/span&gt; &lt;span class=string&gt;"makeappx pack failed with exit code &lt;/span&gt;&lt;span class="string variable"&gt;$LASTEXITCODE&lt;/span&gt;&lt;span class=string&gt;."&lt;/span&gt; }
        }
        &lt;span class=keyword&gt;finally&lt;/span&gt; {
            &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-Path&lt;/span&gt; -LiteralPath &lt;span class=variable&gt;$unpackDir&lt;/span&gt;) {
                &lt;span class=function&gt;Remove-Item&lt;/span&gt; -LiteralPath &lt;span class=variable&gt;$unpackDir&lt;/span&gt; -Recurse -Force
            }
        }
    }
    &lt;span class=keyword&gt;else&lt;/span&gt; {
        &lt;span class=function&gt;Write-Warning&lt;/span&gt; &lt;span class=string&gt;"makeappx.exe not found; MinVersion was not adjusted. Store upload may fail."&lt;/span&gt;
    }

    &lt;span class=variable&gt;$created&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Get-Item&lt;/span&gt;&lt;span class=assignvalue&gt; &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$packagePath&lt;/span&gt;
    &lt;span class=function&gt;Write-Host&lt;/span&gt; (&lt;span class=string&gt;"Created: {0} ({1:N0} KB)"&lt;/span&gt; -f &lt;span class=variable&gt;$created&lt;/span&gt;.&lt;span class=property&gt;FullName&lt;/span&gt;, (&lt;span class=variable&gt;$created&lt;/span&gt;.&lt;span class=property&gt;Length&lt;/span&gt; &lt;span class=operator&gt;/&lt;/span&gt; &lt;span class=number&gt;1&lt;/span&gt;KB))
}
&lt;span class=keyword&gt;finally&lt;/span&gt; {
    &lt;span class=comment&gt;# The tool installs the MSI on this machine while capturing changes; clean up.&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=function&gt;Test-MsiInstalled&lt;/span&gt; -ProductCode &lt;span class=variable&gt;$productCode&lt;/span&gt;) {
        &lt;span class=function&gt;Write-Host&lt;/span&gt; &lt;span class=string&gt;"Cleaning up the test installation..."&lt;/span&gt;
        &lt;span class=variable&gt;$exitCode&lt;/span&gt; = &lt;span class="assignvalue function"&gt;Invoke-MsiUninstall&lt;/span&gt;&lt;span class=assignvalue&gt; -Target &lt;/span&gt;&lt;span class="assignvalue variable"&gt;$productCode&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; (&lt;span class=variable&gt;$exitCode&lt;/span&gt; &lt;span class=operator&gt;-notin&lt;/span&gt; &lt;span class=array&gt;@(&lt;/span&gt;&lt;span class="array number"&gt;0&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array number"&gt;1605&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array number"&gt;1641&lt;/span&gt;&lt;span class=array&gt;, &lt;/span&gt;&lt;span class="array number"&gt;3010&lt;/span&gt;&lt;span class=array&gt;)&lt;/span&gt;) {
            &lt;span class=function&gt;Write-Warning&lt;/span&gt; &lt;span class=string&gt;"Cleanup uninstall failed with msiexec exit code &lt;/span&gt;&lt;span class="string variable"&gt;$exitCode&lt;/span&gt;&lt;span class=string&gt;."&lt;/span&gt;
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The app store listing&lt;/p&gt;&lt;a href="https://apps.microsoft.com/store/detail/9MT3RCXNDBT4?cid=DevShareMCLPCS" title="Drawx draw"&gt;&lt;img src=https://i.ibb.co/5xvbQQ4C/image-png.png alt="Drawx draw"&gt;&lt;/a&gt;
</description>
          <link>https://www.pratyay.online/blog/publish-tauri-app-to-microsoft-store/</link>
          <pubDate>Mon, 09 Nov 2026 18:45:16 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/publish-tauri-app-to-microsoft-store/</guid>
        </item>
      
    
      
        <item>
          <title>Why Your Tauri based appImage not working on Linux</title>
          <description>&lt;h2&gt;Tauri Apps Built as Appimages are not working on modern Linux distributions, like fedora, arch&lt;/h2&gt;&lt;p&gt;Appimages are one of the nicest ways to distribute an app but not being able to run a format meant to be used on multiple Os, is a bad thing. Appimage as a format is crucial for users who want to test a app and use it without the need of installing. Appimages are cool as they comes with all the required dependencies and can be operated on systems such as Windows with WSL2 and FreeBSD with the Linuxulator. Appimages are self contained in nature and requires no root access.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/SzdDWNG/Screenshot-20261010-211137-png.png&gt;
&lt;figcaption&gt;blank screen&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;Gtk-Message:&lt;/span&gt; &lt;span class=constant&gt;21:07:08.168:&lt;/span&gt; &lt;span class=constant&gt;Failed&lt;/span&gt; &lt;span class=constant&gt;to&lt;/span&gt; &lt;span class=constant&gt;load&lt;/span&gt; &lt;span class=constant&gt;module&lt;/span&gt; &lt;span class="constant string"&gt;"appmenu-gtk-module"&lt;/span&gt;&lt;span class=constant&gt;:&lt;/span&gt; &lt;span class="constant string"&gt;'gtk_module_display_init'&lt;/span&gt;&lt;span class=constant&gt;:&lt;/span&gt; &lt;span class=constant&gt;/usr/lib64/gtk-3.0/modules/libcolorreload-gtk-module.so:&lt;/span&gt; &lt;span class=constant&gt;undefined&lt;/span&gt; &lt;span class=constant&gt;symbol:&lt;/span&gt; &lt;span class=constant&gt;gtk_module_display_init&lt;/span&gt;
&lt;span class="constant function"&gt;Could&lt;/span&gt; &lt;span class=constant&gt;not&lt;/span&gt; &lt;span class=constant&gt;create&lt;/span&gt; &lt;span class=constant&gt;default&lt;/span&gt; &lt;span class=constant&gt;EGL&lt;/span&gt; &lt;span class=constant&gt;display:&lt;/span&gt; &lt;span class=constant&gt;EGL_BAD_PARAMETER.&lt;/span&gt; &lt;span class=constant&gt;Aborting...&lt;/span&gt;

&lt;span class="constant function"&gt;**&lt;/span&gt; &lt;span class=constant&gt;(&lt;/span&gt;&lt;span class="constant function"&gt;apiark:185476&lt;/span&gt;): &lt;span class="constant function"&gt;WARNING&lt;/span&gt; &lt;span class=constant&gt;**:&lt;/span&gt; &lt;span class=constant&gt;21:07:33.334:&lt;/span&gt; &lt;span class=constant&gt;atk-bridge:&lt;/span&gt; &lt;span class=constant&gt;get_device_events_reply:&lt;/span&gt; &lt;span class=constant&gt;unknown&lt;/span&gt; &lt;span class=constant&gt;signature&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is a sample app image for a Tauri based rest api client &lt;a href=https://apiark.dev/ target=_blank&gt;apiark&lt;/a&gt;.&lt;p&gt;So, I was building &lt;a href=https://pratyay360.github.io/drawx/ target=_blank&gt;Drawx&lt;/a&gt;, the offline version of &lt;a href=https://github.com/Pratyay360/drawy target=_blank&gt;drawy&lt;/a&gt;, which provides data sovereignty because nothing ever leaves your machine. However, the Drawx app was not working on my machine because of some odd issues. I wanted to run the AppImage in a portable manner, but using environment variables did not help. Setting &lt;code&gt;WEBKIT_DISABLE_DMABUF_RENDERER=1&lt;/code&gt; or &lt;code&gt;WEBKIT_DISABLE_COMPOSITING_MODE=1&lt;/code&gt; either caused a crash on launch or displayed a blank screen. The issue is that the CI environment adds libraries such as &lt;code&gt;libwayland-client.so&lt;/code&gt; inside the AppImage. This creates conflicts between the AppImage’s dependencies and the system’s libraries. The solution is to remove the duplicated dependencies and let the AppImage use the system’s libraries instead of those inside the AppImage.&lt;h3&gt;How to Fix This ?&lt;/h3&gt;&lt;p&gt;Remove all dependencies related to wayland from the AppImage. Since XWayland can handle X11 applications, there is no need to bundle these libraries internally. The creator of the AppImage also noted this in &lt;a href=https://x.com/realPratyay/status/2109024857203617944 target=_blank&gt;his comment&lt;/a&gt;.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/Rkkyrt18/Screenshot-20261011-232802-png.png&gt;
&lt;figcaption&gt;Patched AppImage&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;I have written a shell script to handle this for you. Please create a file at &lt;code&gt;src-tauri/scripts/patch-appimage-wayland.sh&lt;/code&gt; and paste the script into it.&lt;pre&gt;&lt;code class=bash&gt;&lt;span class=comment&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="constant function"&gt;set&lt;/span&gt; &lt;span class=constant&gt;-euo&lt;/span&gt; &lt;span class=constant&gt;pipefail&lt;/span&gt;

&lt;span class=property&gt;SCRIPT_DIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;cd&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;dirname&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded string"&gt;${&lt;/span&gt;&lt;span class="constant embedded property string"&gt;BASH_SOURCE&lt;/span&gt;&lt;span class="constant embedded string"&gt;[0]}&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;)" &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="constant function"&gt;pwd&lt;/span&gt;)"
&lt;span class=property&gt;REPO_ROOT&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;cd&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;SCRIPT_DIR&lt;/span&gt;&lt;span class="constant embedded string"&gt;/../.."&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded operator"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded function"&gt;pwd&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
&lt;span class=property&gt;SRC_TAURI_DIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;REPO_ROOT&lt;/span&gt;&lt;span class=string&gt;/src-tauri"&lt;/span&gt;
&lt;span class=property&gt;TAURI_CACHE_DIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;XDG_CACHE_HOME&lt;/span&gt;&lt;span class="embedded string"&gt;:-&lt;/span&gt;&lt;span class="embedded operator string"&gt;$&lt;/span&gt;&lt;span class="embedded property string"&gt;HOME&lt;/span&gt;&lt;span class="embedded string"&gt;/.cache}&lt;/span&gt;&lt;span class=string&gt;/tauri"&lt;/span&gt;

&lt;span class=comment&gt;# Clean up temp files on exit&lt;/span&gt;
&lt;span class=property&gt;TEMP_BIN&lt;/span&gt;=&lt;span class=embedded&gt;$(&lt;/span&gt;&lt;span class="constant embedded function"&gt;mktemp&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-d&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;
&lt;span class=property&gt;TEMP_EXTRACT&lt;/span&gt;=&lt;span class=string&gt;""&lt;/span&gt;
&lt;span class=function&gt;cleanup&lt;/span&gt;() {
  &lt;span class="constant function"&gt;rm&lt;/span&gt; &lt;span class=constant&gt;-rf&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TEMP_BIN&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;if&lt;/span&gt; [ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TEMP_EXTRACT&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ] &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; [ -d &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TEMP_EXTRACT&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;rm&lt;/span&gt; &lt;span class=constant&gt;-rf&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TEMP_EXTRACT&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
}
&lt;span class="constant function"&gt;trap&lt;/span&gt; &lt;span class=constant&gt;cleanup&lt;/span&gt; &lt;span class=constant&gt;EXIT&lt;/span&gt;

&lt;span class=comment&gt;# 1. Resolve linuxdeploy and appimage tools&lt;/span&gt;
&lt;span class=property&gt;LINUXDEPLOY_BIN&lt;/span&gt;=&lt;span class=string&gt;""&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; [ -d &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TAURI_CACHE_DIR&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
  &lt;span class=property&gt;cached_linuxdeploy&lt;/span&gt;=&lt;span class=embedded&gt;$(&lt;/span&gt;&lt;span class="constant embedded function"&gt;find&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;TAURI_CACHE_DIR&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-maxdepth&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;1&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-name&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"linuxdeploy-*.AppImage"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-print&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-quit&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded number"&gt;2&lt;/span&gt;&lt;span class="embedded operator"&gt;&amp;gt;&lt;/span&gt;&lt;span class=embedded&gt;/dev/null || &lt;/span&gt;&lt;span class="constant embedded function"&gt;true&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;
  &lt;span class=keyword&gt;if&lt;/span&gt; [ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;cached_linuxdeploy&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ] &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; [ -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;cached_linuxdeploy&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;ln&lt;/span&gt; &lt;span class=constant&gt;-sf&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;cached_linuxdeploy&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TEMP_BIN&lt;/span&gt;&lt;span class="constant string"&gt;/linuxdeploy"&lt;/span&gt;
    &lt;span class=property&gt;LINUXDEPLOY_BIN&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TEMP_BIN&lt;/span&gt;&lt;span class=string&gt;/linuxdeploy"&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;

  &lt;span class=property&gt;cached_plugin&lt;/span&gt;=&lt;span class=embedded&gt;$(&lt;/span&gt;&lt;span class="constant embedded function"&gt;find&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;TAURI_CACHE_DIR&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-maxdepth&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;1&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-name&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"linuxdeploy-plugin-appimage.AppImage"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-print&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-quit&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded number"&gt;2&lt;/span&gt;&lt;span class="embedded operator"&gt;&amp;gt;&lt;/span&gt;&lt;span class=embedded&gt;/dev/null || &lt;/span&gt;&lt;span class="constant embedded function"&gt;true&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;
  &lt;span class=keyword&gt;if&lt;/span&gt; [ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;cached_plugin&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ] &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; [ -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;cached_plugin&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;ln&lt;/span&gt; &lt;span class=constant&gt;-sf&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;cached_plugin&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TEMP_BIN&lt;/span&gt;&lt;span class="constant string"&gt;/linuxdeploy-plugin-appimage"&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
&lt;span class=keyword&gt;fi&lt;/span&gt;

&lt;span class=keyword&gt;if&lt;/span&gt; [ -z &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;LINUXDEPLOY_BIN&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ] &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="constant function"&gt;command&lt;/span&gt; &lt;span class=constant&gt;-v&lt;/span&gt; &lt;span class=constant&gt;linuxdeploy&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class=number&gt;2&lt;/span&gt;&amp;gt;&amp;amp;1; &lt;span class=keyword&gt;then&lt;/span&gt;
  &lt;span class=property&gt;LINUXDEPLOY_BIN&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;command&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-v&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;linuxdeploy&lt;/span&gt;&lt;span class="embedded string"&gt;)&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
&lt;span class=keyword&gt;fi&lt;/span&gt;

&lt;span class=keyword&gt;export&lt;/span&gt; &lt;span class=property&gt;PATH&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TEMP_BIN&lt;/span&gt;&lt;span class=string&gt;:&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;PATH&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
&lt;span class=keyword&gt;export&lt;/span&gt; &lt;span class=property&gt;APPIMAGE_EXTRACT_AND_RUN&lt;/span&gt;=1

&lt;span class=comment&gt;# 2. Patch an AppDir in-place&lt;/span&gt;
&lt;span class=function&gt;patch_appdir&lt;/span&gt;() {
  local &lt;span class=property&gt;appdir&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;1&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
  &lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"Patching AppDir: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;

  &lt;span class=comment&gt;# 1. Write self-contained Wayland compatibility hook&lt;/span&gt;
  &lt;span class="constant function"&gt;mkdir&lt;/span&gt; &lt;span class=constant&gt;-p&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;/apprun-hooks"&lt;/span&gt;
  &lt;span class="constant function"&gt;cat&lt;/span&gt; &amp;lt;&amp;lt; &lt;span class=string&gt;'EOF'&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt; &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;appdir&lt;/span&gt;&lt;span class=string&gt;/apprun-hooks/wayland-compat.sh"&lt;/span&gt;
&lt;span class=string&gt;export DESKTOPINTEGRATION=1

if [ -z "${LD_PRELOAD:-}" ]; then
  for lib in \
    /usr/lib/libwayland-client.so \
    /usr/lib64/libwayland-client.so \
    /usr/lib/x86_64-linux-gnu/libwayland-client.so \
    /usr/lib/aarch64-linux-gnu/libwayland-client.so \
    /usr/lib/arm-linux-gnueabihf/libwayland-client.so; do
    if [ -f "$lib" ]; then
      export LD_PRELOAD="$lib"
      break
    fi
  done
fi
&lt;/span&gt;EOF
  &lt;span class="constant function"&gt;chmod&lt;/span&gt; &lt;span class=constant&gt;+x&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;/apprun-hooks/wayland-compat.sh"&lt;/span&gt;

  &lt;span class=comment&gt;# 2. Patch AppRun so it sources the new hook before executing AppRun.wrapped&lt;/span&gt;
  &lt;span class=keyword&gt;if&lt;/span&gt; [ -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;appdir&lt;/span&gt;&lt;span class=string&gt;/AppRun.wrapped"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class=keyword&gt;if&lt;/span&gt; ! &lt;span class="constant function"&gt;grep&lt;/span&gt; &lt;span class=constant&gt;-q&lt;/span&gt; &lt;span class="constant string"&gt;"wayland-compat.sh"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;/AppRun"&lt;/span&gt;; &lt;span class=keyword&gt;then&lt;/span&gt;
      &lt;span class="constant function"&gt;cat&lt;/span&gt; &amp;lt;&amp;lt; &lt;span class=string&gt;'EOF'&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt; &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;appdir&lt;/span&gt;&lt;span class=string&gt;/AppRun"&lt;/span&gt;
&lt;span class=string&gt;#!/usr/bin/env bash
HERE="$(dirname "$(readlink -f "${0}")")"
if [ -f "$HERE/apprun-hooks/wayland-compat.sh" ]; then
  . "$HERE/apprun-hooks/wayland-compat.sh"
fi
exec "$HERE/AppRun.wrapped" "$@"
&lt;/span&gt;EOF
      &lt;span class="constant function"&gt;chmod&lt;/span&gt; &lt;span class=constant&gt;+x&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;/AppRun"&lt;/span&gt;
    &lt;span class=keyword&gt;fi&lt;/span&gt;
  &lt;span class=keyword&gt;elif&lt;/span&gt; [ -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;appdir&lt;/span&gt;&lt;span class=string&gt;/AppRun"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;mv&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;/AppRun"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;/AppRun.wrapped"&lt;/span&gt;
    &lt;span class="constant function"&gt;cat&lt;/span&gt; &amp;lt;&amp;lt; &lt;span class=string&gt;'EOF'&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt; &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;appdir&lt;/span&gt;&lt;span class=string&gt;/AppRun"&lt;/span&gt;
&lt;span class=string&gt;#!/usr/bin/env bash
HERE="$(dirname "$(readlink -f "${0}")")"
if [ -f "$HERE/apprun-hooks/wayland-compat.sh" ]; then
  . "$HERE/apprun-hooks/wayland-compat.sh"
fi
exec "$HERE/AppRun.wrapped" "$@"
&lt;/span&gt;EOF
    &lt;span class="constant function"&gt;chmod&lt;/span&gt; &lt;span class=constant&gt;+x&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;/AppRun"&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
}

&lt;span class=comment&gt;# 3. Repack AppDir into AppImage&lt;/span&gt;
&lt;span class=function&gt;repack_appdir&lt;/span&gt;() {
  local &lt;span class=property&gt;appdir&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;1&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
  local &lt;span class=property&gt;expected_appimage&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;2&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;
  local &lt;span class=property&gt;bundle_dir&lt;/span&gt;
  &lt;span class=property&gt;bundle_dir&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;dirname&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;expected_appimage&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
  local &lt;span class=property&gt;appimage_base&lt;/span&gt;
  &lt;span class=property&gt;appimage_base&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;basename&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;expected_appimage&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"

  &lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"Repacking AppImage into &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;expected_appimage&lt;/span&gt;&lt;span class="constant string"&gt;..."&lt;/span&gt;
  (
    &lt;span class="constant function"&gt;cd&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;bundle_dir&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
    &lt;span class=keyword&gt;export&lt;/span&gt; &lt;span class=property&gt;LDAI_OUTPUT&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;appimage_base&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;

    &lt;span class=comment&gt;# Remove existing AppImage before repacking&lt;/span&gt;
    [ -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;expected_appimage&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ] &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="constant function"&gt;rm&lt;/span&gt; &lt;span class=constant&gt;-f&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;expected_appimage&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;

    &lt;span class=keyword&gt;if&lt;/span&gt; [ -n &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;LINUXDEPLOY_BIN&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
      &lt;span class="constant function string"&gt;"&lt;/span&gt;&lt;span class="constant function operator string"&gt;$&lt;/span&gt;&lt;span class="constant function property string"&gt;LINUXDEPLOY_BIN&lt;/span&gt;&lt;span class="constant function string"&gt;"&lt;/span&gt; &lt;span class=constant&gt;--appdir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class=constant&gt;--output&lt;/span&gt; &lt;span class=constant&gt;appimage&lt;/span&gt;
    &lt;span class=keyword&gt;elif&lt;/span&gt; &lt;span class="constant function"&gt;command&lt;/span&gt; &lt;span class=constant&gt;-v&lt;/span&gt; &lt;span class=constant&gt;appimagetool&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class=number&gt;2&lt;/span&gt;&amp;gt;&amp;amp;1; &lt;span class=keyword&gt;then&lt;/span&gt;
      &lt;span class="constant function"&gt;appimagetool&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;expected_appimage&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
    &lt;span class=keyword&gt;elif&lt;/span&gt; [ -x &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TEMP_BIN&lt;/span&gt;&lt;span class=string&gt;/linuxdeploy-plugin-appimage"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
      &lt;span class="constant function string"&gt;"&lt;/span&gt;&lt;span class="constant function operator string"&gt;$&lt;/span&gt;&lt;span class="constant function property string"&gt;TEMP_BIN&lt;/span&gt;&lt;span class="constant function string"&gt;/linuxdeploy-plugin-appimage"&lt;/span&gt; &lt;span class=constant&gt;--appdir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
    &lt;span class=keyword&gt;else&lt;/span&gt;
      &lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"Error: Could not find linuxdeploy or appimagetool to repack &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &amp;gt;&amp;amp;2
      &lt;span class="constant function"&gt;exit&lt;/span&gt; &lt;span class=constant&gt;1&lt;/span&gt;
    &lt;span class=keyword&gt;fi&lt;/span&gt;
  )

  &lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"Successfully repacked AppImage at &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;expected_appimage&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
}

&lt;span class=comment&gt;# 4. Process targets&lt;/span&gt;
&lt;span class=keyword&gt;if&lt;/span&gt; [ &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;1&lt;/span&gt;&lt;span class="embedded string"&gt;:-}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; != &lt;span class=string&gt;""&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
  &lt;span class=property&gt;TARGET_PATH&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;readlink&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;-f&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;1&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
  &lt;span class=keyword&gt;if&lt;/span&gt; [ -d &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;patch_appdir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
    &lt;span class=property&gt;bundle_dir&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;dirname&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
    &lt;span class=property&gt;appdir_name&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;basename&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
    &lt;span class=property&gt;expected_appimage&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;bundle_dir&lt;/span&gt;&lt;span class="embedded string"&gt;}&lt;/span&gt;&lt;span class=string&gt;/&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;appdir_name&lt;/span&gt;&lt;span class="embedded string"&gt;%.AppDir}&lt;/span&gt;&lt;span class=string&gt;.AppImage"&lt;/span&gt;
    &lt;span class="constant function"&gt;repack_appdir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;expected_appimage&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;elif&lt;/span&gt; [ -f &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class=property&gt;TEMP_EXTRACT&lt;/span&gt;=&lt;span class=embedded&gt;$(&lt;/span&gt;&lt;span class="constant embedded function"&gt;mktemp&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-d&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;
    &lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"Extracting AppImage: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
    (&lt;span class="constant function"&gt;cd&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TEMP_EXTRACT&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="constant function string"&gt;"&lt;/span&gt;&lt;span class="constant function operator string"&gt;$&lt;/span&gt;&lt;span class="constant function property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class="constant function string"&gt;"&lt;/span&gt; &lt;span class=constant&gt;--appimage-extract&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt;/dev/null)
    &lt;span class=property&gt;EXTRACTED_APPDIR&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;TEMP_EXTRACT&lt;/span&gt;&lt;span class=string&gt;/squashfs-root"&lt;/span&gt;
    &lt;span class="constant function"&gt;patch_appdir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;EXTRACTED_APPDIR&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
    &lt;span class="constant function"&gt;repack_appdir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;EXTRACTED_APPDIR&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;else&lt;/span&gt;
    &lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"Error: Target path not found: &lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;TARGET_PATH&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &amp;gt;&amp;amp;2
    &lt;span class="constant function"&gt;exit&lt;/span&gt; &lt;span class=constant&gt;1&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;
&lt;span class=keyword&gt;else&lt;/span&gt;
  &lt;span class=property&gt;APPDIRS&lt;/span&gt;=()
  &lt;span class=keyword&gt;while&lt;/span&gt; &lt;span class="constant property"&gt;IFS&lt;/span&gt;&lt;span class=constant&gt;=&lt;/span&gt; &lt;span class="constant function"&gt;read&lt;/span&gt; &lt;span class=constant&gt;-r&lt;/span&gt; &lt;span class=constant&gt;-d&lt;/span&gt; &lt;span class="constant string"&gt;''&lt;/span&gt; &lt;span class=constant&gt;dir&lt;/span&gt;; &lt;span class=keyword&gt;do&lt;/span&gt;
    &lt;span class=property&gt;APPDIRS&lt;/span&gt;+=(&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;dir&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;)
  &lt;span class=keyword&gt;done&lt;/span&gt; &lt;span class=operator&gt;&amp;lt;&lt;/span&gt; &lt;span class=embedded&gt;&amp;lt;(&lt;/span&gt;&lt;span class="constant embedded function"&gt;find&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;SRC_TAURI_DIR&lt;/span&gt;&lt;span class="constant embedded string"&gt;/target"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;REPO_ROOT&lt;/span&gt;&lt;span class="constant embedded string"&gt;/target"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-type&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;d&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-name&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"*.AppDir"&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="constant embedded"&gt;-print0&lt;/span&gt;&lt;span class=embedded&gt; &lt;/span&gt;&lt;span class="embedded number"&gt;2&lt;/span&gt;&lt;span class="embedded operator"&gt;&amp;gt;&lt;/span&gt;&lt;span class=embedded&gt;/dev/null || &lt;/span&gt;&lt;span class="constant embedded function"&gt;true&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;

  &lt;span class=keyword&gt;if&lt;/span&gt; [ &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${#&lt;/span&gt;&lt;span class="embedded property string"&gt;APPDIRS&lt;/span&gt;&lt;span class="embedded string"&gt;[@]}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt; -eq 0 ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"No *.AppDir found to patch. (Did you run tauri build?)"&lt;/span&gt;
    &lt;span class="constant function"&gt;exit&lt;/span&gt; &lt;span class=constant&gt;0&lt;/span&gt;
  &lt;span class=keyword&gt;fi&lt;/span&gt;

  &lt;span class=keyword&gt;for&lt;/span&gt; &lt;span class=property&gt;appdir&lt;/span&gt; &lt;span class=keyword&gt;in&lt;/span&gt; &lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;APPDIRS&lt;/span&gt;&lt;span class="embedded string"&gt;[@]}&lt;/span&gt;&lt;span class=string&gt;"&lt;/span&gt;; &lt;span class=keyword&gt;do&lt;/span&gt;
    &lt;span class="constant function"&gt;patch_appdir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
    &lt;span class=property&gt;bundle_dir&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;dirname&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;appdir&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
    &lt;span class=property&gt;appdir_name&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;$(&lt;/span&gt;&lt;span class="constant embedded function string"&gt;basename&lt;/span&gt;&lt;span class="embedded string"&gt; &lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class="constant embedded operator string"&gt;$&lt;/span&gt;&lt;span class="constant embedded property string"&gt;appdir&lt;/span&gt;&lt;span class="constant embedded string"&gt;"&lt;/span&gt;&lt;span class=embedded&gt;)&lt;/span&gt;"
    &lt;span class=property&gt;expected_appimage&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;bundle_dir&lt;/span&gt;&lt;span class="embedded string"&gt;}&lt;/span&gt;&lt;span class=string&gt;/&lt;/span&gt;&lt;span class="embedded string"&gt;${&lt;/span&gt;&lt;span class="embedded property string"&gt;appdir_name&lt;/span&gt;&lt;span class="embedded string"&gt;%.AppDir}&lt;/span&gt;&lt;span class=string&gt;.AppImage"&lt;/span&gt;
    &lt;span class="constant function"&gt;repack_appdir&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;appdir&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt; &lt;span class="constant string"&gt;"&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;expected_appimage&lt;/span&gt;&lt;span class="constant string"&gt;"&lt;/span&gt;
  &lt;span class=keyword&gt;done&lt;/span&gt;
&lt;span class=keyword&gt;fi&lt;/span&gt;

&lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"Wayland AppImage patching complete."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;And Change a Little Thing in the Existing Workflow&lt;/h4&gt;&lt;h4&gt;Replace All &lt;code&gt;tauri build&lt;/code&gt; Commands With &lt;code&gt;tauri build &amp;amp;&amp;amp; source src-tauri/scripts/patch-appimage-wayland.sh&lt;/code&gt;&lt;/h4&gt;&lt;p&gt;if you are using vite then replace the &lt;code&gt;tauri build&lt;/code&gt; command with &lt;code&gt;tauri build &amp;amp;&amp;amp; source src-tauri/scripts/patch-appimage-wayland.sh&lt;/code&gt; in the scripts section of &lt;code&gt;package.json&lt;/code&gt;.&lt;pre&gt;&lt;code class=json&gt;{
 &lt;span class="string string_special_key"&gt;"name"&lt;/span&gt;: &lt;span class=string&gt;"drawx"&lt;/span&gt;,
 &lt;span class="string string_special_key"&gt;"version"&lt;/span&gt;: &lt;span class=string&gt;"0.8.5"&lt;/span&gt;,
 &lt;span class="string string_special_key"&gt;"type"&lt;/span&gt;: &lt;span class=string&gt;"module"&lt;/span&gt;,
 &lt;span class="string string_special_key"&gt;"imports"&lt;/span&gt;: {
  &lt;span class="string string_special_key"&gt;"#components/*"&lt;/span&gt;: &lt;span class=string&gt;"./src/components/*.tsx"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"#lib/*"&lt;/span&gt;: &lt;span class=string&gt;"./src/lib/*.ts"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"#hooks/*"&lt;/span&gt;: &lt;span class=string&gt;"./src/hooks/*.ts"&lt;/span&gt;
 },
 &lt;span class="string string_special_key"&gt;"scripts"&lt;/span&gt;: {
  &lt;span class="string string_special_key"&gt;"dev"&lt;/span&gt;: &lt;span class=string&gt;"vite"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"build"&lt;/span&gt;: &lt;span class=string&gt;"tsc &amp;amp;&amp;amp; vite build"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"typecheck"&lt;/span&gt;: &lt;span class=string&gt;"tsc --noEmit"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"preview"&lt;/span&gt;: &lt;span class=string&gt;"vite preview"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"tauri"&lt;/span&gt;: &lt;span class=string&gt;"tauri"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"tauri:build"&lt;/span&gt;: &lt;span class=string&gt;"tauri build &amp;amp;&amp;amp; source src-tauri/scripts/patch-appimage-wayland.sh"&lt;/span&gt;
 },
 &lt;span class="string string_special_key"&gt;"dependencies"&lt;/span&gt;: {
  &lt;span class="string string_special_key"&gt;"@astryxdesign/cli"&lt;/span&gt;: &lt;span class=string&gt;"^0.5.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@astryxdesign/core"&lt;/span&gt;: &lt;span class=string&gt;"^0.5.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@astryxdesign/theme-matcha"&lt;/span&gt;: &lt;span class=string&gt;"^0.5.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@astryxdesign/theme-neutral"&lt;/span&gt;: &lt;span class=string&gt;"^0.5.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@astryxdesign/theme-stone"&lt;/span&gt;: &lt;span class=string&gt;"^0.5.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@astryxdesign/theme-y2k"&lt;/span&gt;: &lt;span class=string&gt;"^0.5.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@excalidraw/excalidraw"&lt;/span&gt;: &lt;span class=string&gt;"^0.18.1"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@fontsource-variable/inter"&lt;/span&gt;: &lt;span class=string&gt;"^5.3.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@fontsource-variable/jetbrains-mono"&lt;/span&gt;: &lt;span class=string&gt;"^5.3.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@hugeicons/core-free-icons"&lt;/span&gt;: &lt;span class=string&gt;"^4.3.5"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@hugeicons/react"&lt;/span&gt;: &lt;span class=string&gt;"^1.1.10"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@iconify/react"&lt;/span&gt;: &lt;span class=string&gt;"^6.0.2"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@phosphor-icons/react"&lt;/span&gt;: &lt;span class=string&gt;"^2.1.10"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@stylexjs/stylex"&lt;/span&gt;: &lt;span class=string&gt;"^0.19.1"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/api"&lt;/span&gt;: &lt;span class=string&gt;"^2.12.1"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/plugin-clipboard-manager"&lt;/span&gt;: &lt;span class=string&gt;"^2.4.1"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/plugin-dialog"&lt;/span&gt;: &lt;span class=string&gt;"^2.8.1"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/plugin-fs"&lt;/span&gt;: &lt;span class=string&gt;"^2.6.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/plugin-log"&lt;/span&gt;: &lt;span class=string&gt;"^2.10.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/plugin-opener"&lt;/span&gt;: &lt;span class=string&gt;"^2.7.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/plugin-process"&lt;/span&gt;: &lt;span class=string&gt;"^2.4.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/plugin-updater"&lt;/span&gt;: &lt;span class=string&gt;"^2.13.2"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"class-variance-authority"&lt;/span&gt;: &lt;span class=string&gt;"^0.7.1"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"clsx"&lt;/span&gt;: &lt;span class=string&gt;"^2.1.1"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"lucide-react"&lt;/span&gt;: &lt;span class=string&gt;"^1.53.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"radix-ui"&lt;/span&gt;: &lt;span class=string&gt;"^1.7.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"react"&lt;/span&gt;: &lt;span class=string&gt;"^19.3.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"react-dom"&lt;/span&gt;: &lt;span class=string&gt;"^19.3.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"react-router-dom"&lt;/span&gt;: &lt;span class=string&gt;"^7.18.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"tailwind-merge"&lt;/span&gt;: &lt;span class=string&gt;"^3.7.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"tw-animate-css"&lt;/span&gt;: &lt;span class=string&gt;"^1.4.0"&lt;/span&gt;
 },
 &lt;span class="string string_special_key"&gt;"devDependencies"&lt;/span&gt;: {
  &lt;span class="string string_special_key"&gt;"@biomejs/biome"&lt;/span&gt;: &lt;span class=string&gt;"^2.5.15"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@oxlint/plugins"&lt;/span&gt;: &lt;span class=string&gt;"1.81.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tailwindcss/vite"&lt;/span&gt;: &lt;span class=string&gt;"^4.3.3"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@tauri-apps/cli"&lt;/span&gt;: &lt;span class=string&gt;"^2.12.1"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@types/node"&lt;/span&gt;: &lt;span class=string&gt;"^26.6.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@types/react"&lt;/span&gt;: &lt;span class=string&gt;"^19.3.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@types/react-dom"&lt;/span&gt;: &lt;span class=string&gt;"^19.3.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@vitejs/plugin-react"&lt;/span&gt;: &lt;span class=string&gt;"^6.1.2"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"astryx"&lt;/span&gt;: &lt;span class=string&gt;"^0.0.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"oxfmt"&lt;/span&gt;: &lt;span class=string&gt;"^0.72.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"oxlint"&lt;/span&gt;: &lt;span class=string&gt;"^1.87.0"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"typescript"&lt;/span&gt;: &lt;span class=string&gt;"~7.0.2"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"vite"&lt;/span&gt;: &lt;span class=string&gt;"^8.3.4"&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"zustand"&lt;/span&gt;: &lt;span class=string&gt;"^5.0.15"&lt;/span&gt;
 },
 &lt;span class="string string_special_key"&gt;"devEngines"&lt;/span&gt;: {
  &lt;span class="string string_special_key"&gt;"packageManager"&lt;/span&gt;: {
   &lt;span class="string string_special_key"&gt;"name"&lt;/span&gt;: &lt;span class=string&gt;"pnpm"&lt;/span&gt;,
   &lt;span class="string string_special_key"&gt;"version"&lt;/span&gt;: &lt;span class=string&gt;"^12.10.1"&lt;/span&gt;,
   &lt;span class="string string_special_key"&gt;"onFail"&lt;/span&gt;: &lt;span class=string&gt;"warn"&lt;/span&gt;
  }
 },
 &lt;span class="string string_special_key"&gt;"packageManager"&lt;/span&gt;: &lt;span class=string&gt;"pnpm@12.10.1+sha512.ba40a37eb1a370d60fea8c4cf1d364c13bcccef518e98ad2bcee954f539d38da37458e58261a3fa55e06523450ea0ffff9f497b135be41f2c15c1642bacace6c"&lt;/span&gt;,
 &lt;span class="string string_special_key"&gt;"trustedDependencies"&lt;/span&gt;: [
  &lt;span class=string&gt;"@astryxdesign/cli"&lt;/span&gt;,
  &lt;span class=string&gt;"@astryxdesign/core"&lt;/span&gt;
 ],
 &lt;span class="string string_special_key"&gt;"allowScripts"&lt;/span&gt;: {
  &lt;span class="string string_special_key"&gt;"@astryxdesign/cli"&lt;/span&gt;: &lt;span class=constant_builtin&gt;true&lt;/span&gt;,
  &lt;span class="string string_special_key"&gt;"@astryxdesign/core"&lt;/span&gt;: &lt;span class=constant_builtin&gt;true&lt;/span&gt;
 }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I referred to this &lt;a href=https://girishjoshi.io/post/tauri-2.0-appimage-egl-issue-on-wayland/ target=_blank&gt;blog post&lt;/a&gt; For the initial solution to the issue.</description>
          <link>https://www.pratyay.online/blog/1791646262/</link>
          <pubDate>Sat, 10 Oct 2026 15:31:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1791646262/</guid>
        </item>
      
    
      
        <item>
          <title>Toolbx Containers, A Guide to containerized development</title>
          <description>&lt;p&gt;I recently ran into a problem while trying to work with Homebrew on my Atomic Fedora system. I was developing a custom formula and running &lt;code&gt;brew audit&lt;/code&gt; To debug it, but it failed because GCC &amp;amp; ruby was not available on the host, and I was doing &lt;code&gt;brew bundle install&lt;/code&gt; To make this work but had no luck.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/ks1MD54Q/Build-Your-Own-Developer-Toolbox-png.png&gt;
&lt;figcaption&gt;toolbox&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;The issue wasn’t with Homebrew itself, it was that my host environment was missing the specific dependencies needed for that workflow. I could have installed more packages globally on the host, but that would have made the system more cluttered and harder to manage.&lt;p&gt;Similarly recently I was trying to develop an app in flutter for internal use but have faced issues running that … and things got solved when I am using a sand boxed environment. Also for agents, toolbox can be a bliss. They can run any command and there is a very low chance of breaking stuff.&lt;h2&gt;Why Toolbox?&lt;/h2&gt;&lt;p&gt;Toolbox containers are useful because they integrate well with your host system without forcing you to abandon isolation. They share your home directory and can access host resources such as the SSH agent, while still giving you a clean, disposable Linux environment for development.&lt;p&gt;That makes them especially useful when you need a project-specific toolchain but don’t want to pollute your main system. They also make it easy to define a development workflow as code instead of manually installing packages every time.&lt;p&gt;I realized that if I could create my own customized Toolbox image, I could keep the tools and dependencies I use regularly in one reusable environment.&lt;h3&gt;Defining Your Own Development Environment&lt;/h3&gt;&lt;p&gt;If you work with package maintenance, formula development, or distro-specific tooling, learning to write a Dockerfile or Containerfile is incredibly valuable. It lets you build a consistent environment that is reproducible and version able.&lt;p&gt;Here is an example of an Alma Linux based Toolbox image for Homebrew development:&lt;pre&gt;&lt;code class=dockerfile&gt;&lt;span class=keyword&gt;FROM&lt;/span&gt; quay.io/toolbx-images/almalinux-toolbox&lt;span class=operator&gt;:&lt;/span&gt;latest

&lt;span class=keyword&gt;LABEL&lt;/span&gt; com.github.containers.toolbox=&lt;span class=string&gt;"true"&lt;/span&gt; \
    name=&lt;span class=string&gt;"alma-brew"&lt;/span&gt; \
    version=&lt;span class=string&gt;"latest"&lt;/span&gt; \
    usage=&lt;span class=string&gt;"This image is meant to be used with the toolbox or distrobox command"&lt;/span&gt; \
    summary=&lt;span class=string&gt;"AlmaLinux Toolbox with GCC and Homebrew for developing brew recipes"&lt;/span&gt; \
    maintainer=&lt;span class=string&gt;"Pratyay Mustafi &amp;lt;pratyaymustafi@outlook.com&amp;gt;"&lt;/span&gt;

&lt;span class=comment&gt;# Copy setup scripts and package lists&lt;/span&gt;
&lt;span class=keyword&gt;COPY&lt;/span&gt; scripts/ /scripts/
&lt;span class=keyword&gt;COPY&lt;/span&gt; packages/ /packages/

&lt;span class=comment&gt;# Run the setup scripts, then remove the build-time files&lt;/span&gt;
&lt;span class=keyword&gt;RUN&lt;/span&gt; chmod +x /scripts/*.sh &amp;amp;&amp;amp; /scripts/*.sh
&lt;span class=keyword&gt;RUN&lt;/span&gt; rm -rf /scripts /packages
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This approach makes it easy to build a container that includes exactly what you need, without modifying the host system.&lt;p&gt;I also wanted an Arch-based environment with Chaotic-AUR and &lt;code&gt;paru&lt;/code&gt;, so I created a second image for that workflow:&lt;pre&gt;&lt;code class=dockerfile&gt;&lt;span class=keyword&gt;FROM&lt;/span&gt; quay.io/toolbx/arch-toolbox&lt;span class=operator&gt;:&lt;/span&gt;latest

&lt;span class=keyword&gt;LABEL&lt;/span&gt; com.github.containers.toolbox=&lt;span class=string&gt;"true"&lt;/span&gt; \
    name=&lt;span class=string&gt;"arch-chaotic-toolbox"&lt;/span&gt; \
    version=&lt;span class=string&gt;"latest"&lt;/span&gt; \
    usage=&lt;span class=string&gt;"This image is meant to be used with the toolbox or distrobox command"&lt;/span&gt; \
    summary=&lt;span class=string&gt;"Arch Linux Toolbox with Chaotic-AUR and paru"&lt;/span&gt; \
    maintainer=&lt;span class=string&gt;"Pratyay Mustafi &amp;lt;pratyaymustafi@outlook.com&amp;gt;"&lt;/span&gt;

&lt;span class=comment&gt;# Copy setup scripts and package lists&lt;/span&gt;
&lt;span class=keyword&gt;COPY&lt;/span&gt; scripts/ /scripts/
&lt;span class=keyword&gt;COPY&lt;/span&gt; packages/ /packages/

&lt;span class=comment&gt;# Run the Chaotic-AUR setup script, then remove the build-time files&lt;/span&gt;
&lt;span class=keyword&gt;RUN&lt;/span&gt; chmod +x /scripts/*.sh &amp;amp;&amp;amp; /scripts/chaotic.sh
&lt;span class=keyword&gt;RUN&lt;/span&gt; rm -rf /scripts /packages
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;A Simple Layout of the file structure&lt;/h3&gt;&lt;p&gt;A project like this can stay clean and easy to maintain if it follows a simple layout:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;.&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;.github&lt;/span&gt;
&lt;span class="constant function"&gt;│&lt;/span&gt;   &lt;span class=constant&gt;└──&lt;/span&gt; &lt;span class=constant&gt;workflows&lt;/span&gt;
&lt;span class="constant function"&gt;│&lt;/span&gt;       &lt;span class=constant&gt;├──&lt;/span&gt; &lt;span class=constant&gt;build.yml&lt;/span&gt;
&lt;span class="constant function"&gt;│&lt;/span&gt;       &lt;span class=constant&gt;└──&lt;/span&gt; &lt;span class=constant&gt;clean-runs.yml&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;.gitignore&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;ContainerFiles&lt;/span&gt;
&lt;span class="constant function"&gt;│&lt;/span&gt;   &lt;span class=constant&gt;├──&lt;/span&gt; &lt;span class=constant&gt;brew&lt;/span&gt;
&lt;span class="constant function"&gt;│&lt;/span&gt;   &lt;span class=constant&gt;└──&lt;/span&gt; &lt;span class=constant&gt;chaotic&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;LICENSE&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;README.md&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;packages&lt;/span&gt;
&lt;span class="constant function"&gt;│&lt;/span&gt;   &lt;span class=constant&gt;├──&lt;/span&gt; &lt;span class=constant&gt;brew.packages&lt;/span&gt;
&lt;span class="constant function"&gt;│&lt;/span&gt;   &lt;span class=constant&gt;└──&lt;/span&gt; &lt;span class=constant&gt;chaotic.packages&lt;/span&gt;
&lt;span class="constant function"&gt;└──&lt;/span&gt; &lt;span class=constant&gt;scripts&lt;/span&gt;
    &lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;brew.sh&lt;/span&gt;
    &lt;span class="constant function"&gt;└──&lt;/span&gt; &lt;span class=constant&gt;chaotic.sh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This structure keeps each concern separated:&lt;ul&gt;&lt;li&gt;&lt;code&gt;scripts/&lt;/code&gt; contains the setup logic&lt;li&gt;&lt;code&gt;packages/&lt;/code&gt; contains package lists&lt;li&gt;&lt;code&gt;ContainerFiles/&lt;/code&gt; stores the image definitions&lt;li&gt;&lt;code&gt;README.md&lt;/code&gt; Explains how to build and use the environment&lt;/ul&gt;&lt;p&gt;That keeps the workflow organized and easier to extend later.&lt;h4&gt;Example Package List&lt;/h4&gt;&lt;p&gt;For the Arch-based image, the package list can be as simple as this:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;devel&lt;/span&gt;
&lt;span class="constant function"&gt;git&lt;/span&gt;
&lt;span class="constant function"&gt;paru&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is nice because package changes are declarative. If I need to add a tool, I can update the package list and rebuild the image whenever I need a new dependency or a different toolchain.&lt;h4&gt;Setting up &lt;a href=https://aur.chaotic.cx/ target=_blank&gt;Chaotic AUR based toolbox&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;For Arch-based work, I also wanted a clean way to configure &lt;a href=https://aur.chaotic.cx/ target=_blank&gt;Chaotic-AUR&lt;/a&gt; And install the packages I use most often. The setup script below does just that:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class=comment&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="constant function"&gt;set&lt;/span&gt; &lt;span class=constant&gt;-euo&lt;/span&gt; &lt;span class=constant&gt;pipefail&lt;/span&gt;

&lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"==&amp;gt; Configuring Chaotic AUR repository..."&lt;/span&gt;
&lt;span class="constant function"&gt;pacman-key&lt;/span&gt; &lt;span class=constant&gt;--init&lt;/span&gt;
&lt;span class="constant function"&gt;pacman-key&lt;/span&gt; &lt;span class=constant&gt;--recv-key&lt;/span&gt; &lt;span class=constant&gt;3056513887B78AEB&lt;/span&gt; &lt;span class=constant&gt;--keyserver&lt;/span&gt; &lt;span class=constant&gt;keyserver.ubuntu.com&lt;/span&gt;
&lt;span class="constant function"&gt;pacman-key&lt;/span&gt; &lt;span class=constant&gt;--lsign-key&lt;/span&gt; &lt;span class=constant&gt;3056513887B78AEB&lt;/span&gt;
&lt;span class="constant function"&gt;pacman&lt;/span&gt; &lt;span class=constant&gt;-U&lt;/span&gt; &lt;span class=constant&gt;--noconfirm&lt;/span&gt; &lt;span class="constant string"&gt;'https://geo-mirror.chaotic.cx/chaotic-aur/x86_64/chaotic-keyring.pkg.tar.zst'&lt;/span&gt;
&lt;span class="constant function"&gt;pacman&lt;/span&gt; &lt;span class=constant&gt;-U&lt;/span&gt; &lt;span class=constant&gt;--noconfirm&lt;/span&gt; &lt;span class="constant string"&gt;'https://geo-mirror.chaotic.cx/chaotic-aur/x86_64/chaotic-mirrorlist.pkg.tar.zst'&lt;/span&gt;
&lt;span class="constant function"&gt;sed&lt;/span&gt; &lt;span class=constant&gt;-i&lt;/span&gt; &lt;span class="constant string"&gt;'s|^Server = https://cdn-mirror.chaotic.cx|# Server = https://cdn-mirror.chaotic.cx|'&lt;/span&gt; &lt;span class=constant&gt;/etc/pacman.d/chaotic-mirrorlist&lt;/span&gt;
&lt;span class="constant function"&gt;printf&lt;/span&gt; &lt;span class="constant string"&gt;'\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist\n'&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&amp;gt;&lt;/span&gt; /etc/pacman.conf

&lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"==&amp;gt; Installing packages from chaotic.packages..."&lt;/span&gt;
&lt;span class="constant function"&gt;grep&lt;/span&gt; &lt;span class=constant&gt;-v&lt;/span&gt; &lt;span class="constant string"&gt;'^#'&lt;/span&gt; &lt;span class=constant&gt;/packages/chaotic.packages&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt; /tmp/chaotic.pkglist
&lt;span class=keyword&gt;if&lt;/span&gt; [ ! -s /tmp/chaotic.pkglist ]; &lt;span class=keyword&gt;then&lt;/span&gt;
    &lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"chaotic.packages is missing or empty"&lt;/span&gt; &amp;gt;&amp;amp;2
    &lt;span class="constant function"&gt;exit&lt;/span&gt; &lt;span class=constant&gt;1&lt;/span&gt;
&lt;span class=keyword&gt;fi&lt;/span&gt;
&lt;span class="constant function"&gt;xargs&lt;/span&gt; &lt;span class=constant&gt;pacman&lt;/span&gt; &lt;span class=constant&gt;-Syu&lt;/span&gt; &lt;span class=constant&gt;--needed&lt;/span&gt; &lt;span class=constant&gt;--noconfirm&lt;/span&gt; &lt;span class=operator&gt;&amp;lt;&lt;/span&gt; /tmp/chaotic.pkglist
&lt;span class="constant function"&gt;rm&lt;/span&gt; &lt;span class=constant&gt;-f&lt;/span&gt; &lt;span class=constant&gt;/tmp/chaotic.pkglist&lt;/span&gt;
&lt;span class="constant function"&gt;rm&lt;/span&gt; &lt;span class=constant&gt;-rf&lt;/span&gt; &lt;span class=constant&gt;/var/cache/pacman/pkg/*&lt;/span&gt;

&lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"==&amp;gt; Configuring toolbx permissions..."&lt;/span&gt;
&lt;span class="constant function"&gt;echo&lt;/span&gt; &lt;span class="constant string"&gt;"%wheel ALL=(ALL) NOPASSWD: ALL"&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt; /etc/sudoers.d/toolbox
&lt;span class="constant function"&gt;chmod&lt;/span&gt; &lt;span class=constant&gt;0440&lt;/span&gt; &lt;span class=constant&gt;/etc/sudoers.d/toolbox&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This keeps the setup steps reproducible and easy to manage. If the Arch repository or package list changes, the update is straightforward.&lt;h4&gt;Why This Workflow Works So Well&lt;/h4&gt;&lt;p&gt;This pattern has several practical advantages:&lt;ul&gt;&lt;li&gt;Reproducible builds : the environment is defined in code&lt;li&gt;Portability: the same image can be built elsewhere&lt;li&gt;Isolation: dependencies stay inside the container instead of the host&lt;li&gt;Speed: no repeated manual package setup&lt;li&gt;Simplicity: the environment is easier to debug and maintain.&lt;/ul&gt;&lt;p&gt;It is a great fit for package maintenance, Linux tooling, custom formula work, and any development workflow that depends on a specific toolchain.&lt;p&gt;Toolbox / Distrobox gives you a flexible middle ground: you get the isolation of a container without losing the convenience of working closely with your host environment.&lt;p&gt;For me, building a specialized toolbox image solved an immediate problem and gave me a more maintainable sand boxed way to work going forward. I can now create exactly the environment I need, whether that’s for Home brew development, Arch based tooling, or any other project-specific workflow.&lt;p&gt;If you work with Linux tooling, package building, or want reproducible dev setups, this is a workflow with toolbox container based development is worth adopting. &lt;a href=https://github.com/Pratyay360/chaotic-toolbx target=_blank&gt;Source code on GitHub.&lt;/a&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;&lt;th&gt;&lt;th&gt;&lt;th&gt;&lt;tr&gt;&lt;td&gt;toolbox container type&lt;td&gt;&lt;td&gt;image link&lt;td&gt;&lt;tr&gt;&lt;td&gt;brew-toolbox&lt;td&gt;&lt;a href=https://quay.io/repository/pratyay360/brew-toolbox target=_blank&gt;quay.io/pratyay360/brew-toolbox:latest&lt;/a&gt;&lt;td&gt;docker.io/pratyay360/brew-toolbox:latest&lt;td&gt;&lt;a href=https://github.com/Pratyay360/chaotic-toolbx target=_blank&gt;ghcr.io/pratyay360/brew-toolbox:latest&lt;/a&gt;&lt;tr&gt;&lt;td&gt;chaotic-toolbox&lt;td&gt;&lt;a href=https://quay.io/repository/pratyay360/chaotic-toolbox target=_blank&gt;quay.io/pratyay360/chaotic-toolbox:latest&lt;/a&gt;&lt;td&gt;&lt;a href=http://docker.io/pratyay360/chaotic-toolbox:latest target=_blank&gt;docker.io/pratyay360/chaotic-toolbox:latest&lt;/a&gt;&lt;td&gt;&lt;a href=https://github.com/Pratyay360/chaotic-toolbx target=_blank&gt;ghcr.io/pratyay360/chaotic-toolbox:latest&lt;/a&gt;&lt;tr&gt;&lt;td&gt;android-toolbox&lt;td&gt;&lt;a href=http://quay.io/pratyay360/android-toolbox target=_blank&gt;quay.io/pratyay360/android-toolbox:latest&lt;/a&gt;&lt;td&gt;&lt;a href=http://docker.io/pratyay360/android-toolbox target=_blank&gt;docker.io/pratyay360/android-toolbox&lt;/a&gt;&lt;td&gt;&lt;a href=http://ghcr.io/pratyay360/android-toolbox target=_blank&gt;ghcr.io/pratyay360/android-toolbox&lt;/a&gt;&lt;/table&gt;</description>
          <link>https://www.pratyay.online/blog/1791570929/</link>
          <pubDate>Fri, 09 Oct 2026 18:35:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1791570929/</guid>
        </item>
      
    
      
        <item>
          <title>Releasing tools on different channels with goreleaser</title>
          <description>&lt;h2&gt;Creating a CLI tool is easy, compared to distributing it&lt;/h2&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/Nd5Dx7js/download-png.png&gt;
&lt;figcaption&gt;goreleaser&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Goreleaser makes publishing almost a cakewalk, but it comes with a steep learning curve. Still, distribution is just as important as the product itself. Shipping your tool as standalone binaries isn’t enough. Reaching users through established channels matters It increases your tool’s reputation and gives a free visibility. Like for macOS, there’s Homebrew, nowadays many Linux distributions are promoting it, brew is backed by a large community. Similarly, Winget and Scoop are important distribution channels. Being available through these channels brings significantly more visibility and ease of use.&lt;p&gt;By the way, GoReleaser is a publishing automation tool, and it’s not exclusive to Go, one can build and distribute apps written in many languages like Go, Zig, Rust, TypeScript and more.&lt;p&gt;Let’s first learn about different types of package managers before publishing there.&lt;ol&gt;&lt;li&gt;Homebrew.&lt;/ol&gt;&lt;p&gt;Brew is generally maintained by the community and formulas are mostly written in Ruby &lt;code&gt;:)&lt;/code&gt;.&lt;h3&gt;So do you have to learn ruby to publish on homebrew?&lt;/h3&gt;&lt;p&gt;The answer is no, you don’t. Goreleaser covers everything for you.&lt;p&gt;You can create an empty GitHub repo named &lt;code&gt;homebrew-tap&lt;/code&gt; or any other name with a &lt;code&gt;homebrew-&lt;/code&gt; prefix. &lt;em&gt;the prefix is recommended&lt;/em&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;gh&lt;/span&gt; &lt;span class=constant&gt;repo&lt;/span&gt; &lt;span class=constant&gt;create&lt;/span&gt; &lt;span class=constant&gt;user1/homebrew-tap&lt;/span&gt; &lt;span class=constant&gt;--public&lt;/span&gt;

&lt;span class="constant function"&gt;brew&lt;/span&gt; &lt;span class=constant&gt;new-tap&lt;/span&gt; &lt;span class=constant&gt;user1/tap&lt;/span&gt;

&lt;span class="constant function"&gt;brew&lt;/span&gt; &lt;span class=constant&gt;install&lt;/span&gt; &lt;span class=constant&gt;gh&lt;/span&gt; &lt;span class=constant&gt;git&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;What is tap?&lt;/h4&gt;&lt;p&gt;A tap is a repository with some recipes that brew needs to follow to install a tool. recipe is, in the sense, a formula to install a tool the repo user1/homebrew-tap will be referred as user1/tap while using.&lt;p&gt;On the other side you can make a repo like user1/homebrew-cli –&amp;gt; user1/cli (tap).&lt;ol&gt;&lt;li&gt;scoop&lt;/ol&gt;&lt;p&gt;Scoop is a command line installer for Windows. Think of it as the Windows equivalent of Homebrew, but with its own flavor. To distribute your tool via Scoop, you’ll need to create a “bucket.” A bucket is basically Scoop’s version of a tap, a repo with the name &lt;code&gt;scoop-bucket&lt;/code&gt; is suggested.&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;gh&lt;/span&gt; &lt;span class=constant&gt;repo&lt;/span&gt; &lt;span class=constant&gt;create&lt;/span&gt; &lt;span class=constant&gt;user1/scoop-bucket&lt;/span&gt; &lt;span class=constant&gt;--public&lt;/span&gt;
&lt;span class="constant function"&gt;scoop&lt;/span&gt; &lt;span class=constant&gt;bucket&lt;/span&gt; &lt;span class=constant&gt;add&lt;/span&gt; &lt;span class=constant&gt;bucket-name&lt;/span&gt; &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;https://github.com/user1/bucket-name&lt;span class=operator&gt;&amp;gt;&lt;/span&gt; &lt;span class=comment&gt;## adding a bucket to scoop&lt;/span&gt;
scoop install bucket-name/your-tool &lt;span class=comment&gt;## installing your tool from the bucket&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Creating a Scoop bucket is straightforward:&lt;ol&gt;&lt;li&gt;Winget&lt;/ol&gt;&lt;p&gt;Now, Winget is Microsoft’s official package manager for Windows built into the operating system.&lt;p&gt;The process here is a bit different. Instead of creating a new repo you have to fork the &lt;a href=https://github.com/microsoft/winget-pkgs target=_blank&gt;main repo&lt;/a&gt;,&lt;p&gt;&lt;del&gt;And then create a new branch for your tool&lt;/del&gt; You don’t have to do this thing manually goreleaser handles that for you.&lt;h4&gt;Winget do’s and don’t s&lt;/h4&gt;&lt;p&gt;There are a few things to keep in mind:&lt;p&gt;one tool = one branch,&lt;p&gt;You can’t submit multiple tools in one branch as the pr is for tracking the changes of a single tool, goreleaser automates this process too.&lt;p&gt;Generally, Linux users are techy so they are more likely to install &lt;code&gt;.deb&lt;/code&gt; and &lt;code&gt;.rpm&lt;/code&gt; packages, as well as tools like &lt;code&gt;eget&lt;/code&gt;, And the thing with go as a language is that it includes all the necessary C libraries in the binaries so it can be used by just putting on the path.&lt;h3&gt;The process generally is like you have to create/modify a file in other repo. But GitHub-actions only gives your workflow access to that repo only&lt;/h3&gt;&lt;p&gt;Create a PAT (personal access token) with scopes read, write, releasing, files, repos, actions, action-metadata etc, and add it to your repo secrets. Then you can use that token in your workflow to access other repo.&lt;p&gt;Remember you can’t create any variable with &lt;code&gt;GITHUB_&lt;/code&gt; Prefix in the secrets, so you have to use a different name for your secret like &lt;code&gt;PAT&lt;/code&gt;.&lt;p&gt;To create a release, you have to create a numeric tag only as winget refuses to accept alphanumeric tags.&lt;p&gt;like,&lt;pre&gt;&lt;code class=c&gt;&lt;span class=number&gt;1.1&lt;/span&gt;&lt;span class=delimiter&gt;.&lt;/span&gt;&lt;span class=number&gt;1&lt;/span&gt;
&lt;span class=number&gt;0.1&lt;/span&gt;&lt;span class=number&gt;.2&lt;/span&gt;&lt;span class=operator&gt;-&lt;/span&gt;&lt;span class=number&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;tags can be created using&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;git&lt;/span&gt; &lt;span class=constant&gt;tag&lt;/span&gt; &lt;span class=constant&gt;1.1.1&lt;/span&gt;
&lt;span class="constant function"&gt;git&lt;/span&gt; &lt;span class=constant&gt;push&lt;/span&gt; &lt;span class=constant&gt;-u&lt;/span&gt; &lt;span class=constant&gt;origin&lt;/span&gt; &lt;span class=constant&gt;1.1.1&lt;/span&gt;

&lt;span class=comment&gt;## if you use jj then &lt;/span&gt;

&lt;span class="constant function"&gt;jj&lt;/span&gt; &lt;span class=constant&gt;new&lt;/span&gt; &lt;span class=comment&gt;# stage changes&lt;/span&gt;

&lt;span class="constant function"&gt;jj&lt;/span&gt; &lt;span class=constant&gt;desc&lt;/span&gt; &lt;span class=comment&gt;# describe changes&lt;/span&gt;

&lt;span class="constant function"&gt;jj&lt;/span&gt; &lt;span class=constant&gt;bookmark&lt;/span&gt; &lt;span class=constant&gt;advance&lt;/span&gt; &lt;span class=constant&gt;main&lt;/span&gt; &lt;span class=comment&gt;# advance bookmark main to the new staged state.&lt;/span&gt;

&lt;span class="constant function"&gt;jj&lt;/span&gt; &lt;span class=constant&gt;tag&lt;/span&gt; &lt;span class=constant&gt;set&lt;/span&gt; &lt;span class=constant&gt;1.1.1&lt;/span&gt;

&lt;span class="constant function"&gt;jj&lt;/span&gt; &lt;span class=constant&gt;git&lt;/span&gt; &lt;span class=constant&gt;push&lt;/span&gt; &lt;span class=constant&gt;--all&lt;/span&gt; &lt;span class=comment&gt;#or &lt;/span&gt;

&lt;span class="constant function"&gt;jj&lt;/span&gt; &lt;span class=constant&gt;git&lt;/span&gt; &lt;span class=constant&gt;push&lt;/span&gt; &lt;span class=constant&gt;--tag&lt;/span&gt; &lt;span class=constant&gt;1.1.1&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you have followed my &lt;a href=https://www.pratyay.online/blog/1788377082/ target=_blank&gt;Previous post on doing ci with mise&lt;/a&gt;&lt;p&gt;Then read that post first as I am going to use the same approach here. Also I am assuming you are already using mise on your machine. goreleaser is available on mise, so you can install it using &lt;code&gt;mise use goreleaser@latest&lt;/code&gt;.&lt;p&gt;To getting started, you have to generate a goreleaser configuration file using &lt;code&gt;goreleaser init&lt;/code&gt; Command. It will create a &lt;code&gt;.goreleaser.yml&lt;/code&gt; File in your repo. You can modify it according to your needs. For detailed info please refer to the &lt;a href=https://goreleaser.com/customization/ target=_blank&gt;official documentation&lt;/a&gt;.&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;build and release&lt;/span&gt;
&lt;span class="property string"&gt;on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;push&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;tags&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class=string&gt;'*'&lt;/span&gt;
  &lt;span class="property string"&gt;workflow_dispatch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;

&lt;span class="property string"&gt;permissions&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;contents&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;
  &lt;span class="property string"&gt;pages&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;
  &lt;span class="property string"&gt;id-token&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;

&lt;span class="property string"&gt;jobs&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;ci&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;runs-on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="property string"&gt;container&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
        &lt;span class="property string"&gt;image&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ghcr.io/jdx/mise:2026.8.16&lt;/span&gt;
    &lt;span class="property string"&gt;steps&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;checkout code&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/checkout@main&lt;/span&gt;
        &lt;span class="property string"&gt;with&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;fetch-depth&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=number&gt;0&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Trust git directory in container&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;git config --global --add safe.directory '*'&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Install dependencies &amp;amp; building&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="punctuation_delimiter string"&gt;|&lt;/span&gt;&lt;span class=string&gt;
            mise deps
            mise fetch
            mise run release&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;GITHUB_TOKEN&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.PAT }}&lt;/span&gt;
          &lt;span class="property string"&gt;MISE_EXPERIMENTAL&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=boolean&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;mise.toml&lt;/h2&gt;&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class=string&gt;tools&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;span class=string&gt;go = "latest"
goreleaser = "latest"

[deps]
go = { auto = true }

[tasks]
fetch = { description = "Fetch Go module dependencies", run = "go mod download" }
testcase = { description = "Run Go testcase", run = "go run ./test/test.go" }
build = { description = "Build Go binary", run = ["mise deps", "mise run fetch", "goreleaser build --snapshot --clean"] }
test = { description = "test binary", run = ["mise deps", "mise run testcase", "mise run build"] }
testcases = { description = "Run Go test cases", run = "go test ./..." }
release = { description = "Build and release using Goreleaser", run = "goreleaser release --clean" }&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So I had composed the &lt;code&gt;.goreleaser.yml&lt;/code&gt; file for &lt;a href=https://github.com/Pratyay360/ensor target=_blank&gt;ensor&lt;/a&gt; it should look like this.&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class="comment spell"&gt;# yaml-language-server: $schema=https://goreleaser.com/static/schema.json&lt;/span&gt;
&lt;span class="property string"&gt;version&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=number&gt;2&lt;/span&gt;

&lt;span class="property string"&gt;project_name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;

&lt;span class="property string"&gt;before&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;hooks&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;go mod tidy&lt;/span&gt;
    &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;go generate ./...&lt;/span&gt;

&lt;span class="property string"&gt;builds&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;id&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;
    &lt;span class="property string"&gt;main&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;.&lt;/span&gt;
    &lt;span class="property string"&gt;binary&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;

    &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;CGO_ENABLED=0&lt;/span&gt;

    &lt;span class="property string"&gt;goos&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;linux&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;windows&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;darwin&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;freebsd&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;openbsd&lt;/span&gt;

    &lt;span class="property string"&gt;goarch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;amd64&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;arm64&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class=string&gt;"386"&lt;/span&gt;

    &lt;span class="property string"&gt;ignore&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;goos&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;darwin&lt;/span&gt;
        &lt;span class="property string"&gt;goarch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"386"&lt;/span&gt;

    &lt;span class="property string"&gt;flags&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;-trimpath&lt;/span&gt;

    &lt;span class="property string"&gt;ldflags&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;-s -w -X github.com/Pratyay360/ensor/cmd.version={{.Version}}&lt;/span&gt;

&lt;span class="property string"&gt;archives&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;id&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;default&lt;/span&gt;
    &lt;span class="property string"&gt;ids&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;

    &lt;span class="property string"&gt;formats&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;tar.gz&lt;/span&gt;

    &lt;span class="property string"&gt;name_template&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="punctuation_delimiter string"&gt;&amp;gt;-&lt;/span&gt;&lt;span class=string&gt;
      {{ .ProjectName }}_
      {{- title .Os }}_
      {{- if eq .Arch "amd64" }}x86_64
      {{- else if eq .Arch "386" }}i386
      {{- else }}{{ .Arch }}{{ end }}
      {{- if .Arm }}v{{ .Arm }}{{ end }}&lt;/span&gt;

    &lt;span class="property string"&gt;format_overrides&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;goos&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;windows&lt;/span&gt;
        &lt;span class="property string"&gt;formats&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;zip&lt;/span&gt;

&lt;span class="property string"&gt;checksum&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;name_template&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;checksums.txt&lt;/span&gt;

&lt;span class="property string"&gt;changelog&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;sort&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;asc&lt;/span&gt;
  &lt;span class="property string"&gt;use&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;github&lt;/span&gt;

  &lt;span class="property string"&gt;filters&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;exclude&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class=string&gt;"^docs:"&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class=string&gt;"^test:"&lt;/span&gt;

  &lt;span class="property string"&gt;groups&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;title&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Features&lt;/span&gt;
      &lt;span class="property string"&gt;regexp&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"^feat"&lt;/span&gt;
      &lt;span class="property string"&gt;order&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=number&gt;0&lt;/span&gt;

    &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;title&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Bug fixes&lt;/span&gt;
      &lt;span class="property string"&gt;regexp&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"^fix"&lt;/span&gt;
      &lt;span class="property string"&gt;order&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=number&gt;1&lt;/span&gt;

    &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;title&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Others&lt;/span&gt;
      &lt;span class="property string"&gt;order&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=number&gt;999&lt;/span&gt;

&lt;span class="property string"&gt;nfpms&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;id&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;packages&lt;/span&gt;
    &lt;span class="property string"&gt;package_name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;
    &lt;span class="property string"&gt;description&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"Censor secrets from your codebase"&lt;/span&gt;
    &lt;span class="property string"&gt;homepage&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"https://github.com/Pratyay360/ensor"&lt;/span&gt;
    &lt;span class="property string"&gt;maintainer&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"Pratyay360 &amp;lt;pratyaymustafi@outlook.com&amp;gt;"&lt;/span&gt;
    &lt;span class="property string"&gt;license&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Apache-2.0&lt;/span&gt;

    &lt;span class="property string"&gt;formats&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;deb&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;rpm&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;apk&lt;/span&gt;

&lt;span class="property string"&gt;homebrew_casks&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;
    &lt;span class="property string"&gt;homepage&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"https://github.com/Pratyay360/ensor"&lt;/span&gt;
    &lt;span class="property string"&gt;description&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"Censor secrets from your codebase"&lt;/span&gt;
    &lt;span class="property string"&gt;license&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Apache-2.0&lt;/span&gt;

    &lt;span class="property string"&gt;binaries&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;

    &lt;span class="property string"&gt;generate_completions_from_executable&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class="property string"&gt;executable&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;
      &lt;span class="property string"&gt;args&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
        &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;completion&lt;/span&gt;
      &lt;span class="property string"&gt;base_name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;
      &lt;span class="property string"&gt;shell_parameter_format&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;cobra&lt;/span&gt;
      &lt;span class="property string"&gt;shells&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
        &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;bash&lt;/span&gt;
        &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;zsh&lt;/span&gt;
        &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;fish&lt;/span&gt;

    &lt;span class="property string"&gt;directory&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Casks&lt;/span&gt;
    &lt;span class="property string"&gt;commit_msg_template&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"Brew cask update for {{ .ProjectName }} version {{ .Tag }}"&lt;/span&gt;

    &lt;span class="property string"&gt;repository&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class="property string"&gt;owner&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Pratyay360&lt;/span&gt;
      &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;homebrew-tap&lt;/span&gt;
      &lt;span class="property string"&gt;branch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;main&lt;/span&gt;
&lt;span class="property string"&gt;scoops&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;
    &lt;span class="property string"&gt;homepage&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"https://github.com/Pratyay360/ensor"&lt;/span&gt;
    &lt;span class="property string"&gt;description&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"Censor secrets from your codebase"&lt;/span&gt;
    &lt;span class="property string"&gt;license&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Apache-2.0&lt;/span&gt;
    &lt;span class="property string"&gt;commit_msg_template&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"Scoop update for {{ .ProjectName }} version {{ .Tag }}"&lt;/span&gt;

    &lt;span class="property string"&gt;repository&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class="property string"&gt;owner&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Pratyay360&lt;/span&gt;
      &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;scoop-bucket&lt;/span&gt;
      &lt;span class="property string"&gt;branch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;main&lt;/span&gt;

&lt;span class="property string"&gt;winget&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;winget&lt;/span&gt;
    &lt;span class="property string"&gt;publisher&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Pratyay360&lt;/span&gt;
    &lt;span class="property string"&gt;publisher_url&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"https://github.com/Pratyay360"&lt;/span&gt;
    &lt;span class="property string"&gt;publisher_support_url&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"https://github.com/Pratyay360/ensor/issues"&lt;/span&gt;
    &lt;span class="property string"&gt;package_identifier&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;pratyay360.ensor&lt;/span&gt;
    &lt;span class="property string"&gt;short_description&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"Censor secrets from your codebase"&lt;/span&gt;
    &lt;span class="property string"&gt;description&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"A unified CLI for censoring secrets from your codebase"&lt;/span&gt;
    &lt;span class="property string"&gt;license&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Apache-2.0&lt;/span&gt;
    &lt;span class="property string"&gt;homepage&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"https://github.com/Pratyay360/ensor"&lt;/span&gt;
    &lt;span class="property string"&gt;commit_msg_template&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"{{ .PackageIdentifier }}: {{ .Tag }}"&lt;/span&gt;

    &lt;span class="property string"&gt;repository&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class="property string"&gt;owner&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Pratyay360&lt;/span&gt;
      &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;winget-pkgs&lt;/span&gt;
      &lt;span class="property string"&gt;branch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;   &lt;span class="comment spell"&gt;# branch name should be your tool name. for easy navigation later on.&lt;/span&gt;

&lt;span class="property string"&gt;release&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;github&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;owner&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Pratyay360&lt;/span&gt;
    &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ensor&lt;/span&gt;

&lt;span class="property string"&gt;snapshot&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;version_template&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=string&gt;"{{ incpatch .Version }}-next"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For other tech stack you can use make or &lt;a href=https://just.systems/ target=_blank&gt;just&lt;/a&gt; or &lt;a href=https://mise.jdx.dev/ target=_blank&gt;mise&lt;/a&gt;.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/zvw5SdG/distributing-tools-with-goreleaser-png.png&gt;
&lt;figcaption&gt;gropher&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;I have not yet explored the AUR, as they have stopped accepting registrations, and I haven’t found any documentation on Conda‑Forge. I will investigate this later—potentially as material for a new post. Additionally, the creation of a custom Coppr repository or PPA for distributing the tool is still tbd.</description>
          <link>https://www.pratyay.online/blog/1791199414/</link>
          <pubDate>Mon, 05 Oct 2026 11:23:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1791199414/</guid>
        </item>
      
    
      
        <item>
          <title>Building Your own operating system is not that hard</title>
          <description>&lt;p&gt;Containerizing web applications is standard practice these days, but deploying&lt;br&gt;your entire operating system as a container image fundamentally changes how we interact with and manage the system. If you have been exploring the&lt;br&gt;cloud-native ecosystem, you have likely heard of the &lt;code&gt;bootc&lt;/code&gt; and &lt;code&gt;ostree&lt;/code&gt; projects. But what exactly do they do, and why should you care?&lt;h2&gt;First, let’s talk about what bootc is ?&lt;/h2&gt;&lt;p&gt;Bootc (bootable containers) fundamentally changes how we operate our OS. Instead of just spinning up containers on top of a traditional host, you practically boot into and live inside one.&lt;p&gt;Operating systems built this way are inherently &lt;strong&gt;immutable&lt;/strong&gt;, meaning you cannot write directly to the root directory (&lt;code&gt;/&lt;/code&gt;). While this might sound restrictive at first glance, it provides massive advantages for system security, predictability, and stability.&lt;h3&gt;Why an immutable, container centric OS?&lt;/h3&gt;&lt;p&gt;A bootc based OS gives you very little headroom to break your system. It is not a drill you tried some tinkering with and suddenly the system refuses to boot. If you were still able to break it, no worries, because your system treats itself as a version-controlled system:&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Atomic upgrades:&lt;/strong&gt; Updates download in the background and unpack in parallel to the running system without interrupting your work. It is either successful or failed, with no in-between state.&lt;li&gt;&lt;strong&gt;Instant rollbacks:&lt;/strong&gt; If a bad update or regression ever slips through, you can instantly roll back to the previous working deployment with a simple reboot.&lt;/ul&gt;&lt;p&gt;There are also excellent templates and tooling built around &lt;code&gt;bootc&lt;/code&gt;, such as &lt;a href=https://blue-build.org/ target=_blank&gt;BlueBuild&lt;/a&gt;, which has a fantastic community. Because your OS is essentially a container image, you can customize it, build, and distribute it via a container registry.&lt;h3&gt;Creating and Sharing Custom ISOs&lt;/h3&gt;&lt;p&gt;Building your own container image is straightforward, but what if you want to use it on your machine? You can’t directly install a container image on a new system.&lt;p&gt;Should you be re-basing to your image after installing &lt;a href=https://fedoraproject.org/coreos/ target=_blank&gt;CoreOS&lt;/a&gt;? No. Then why write recipes to mend your own OS?&lt;p&gt;BlueBuild gives you an option to generate your own ISO files with &lt;code&gt;blue-build generate-iso&lt;/code&gt;, but creating that on your machine is a lot of work. So we are going to delegate that to GitHub Actions, but there remains a catch: GitHub allows release assets up to 2 GB per file, which is often too small for full OS ISOs.&lt;p&gt;Alternative storage options include object storage like S3, but there is an egress ingress cost associated, and paying money for a small hobby is a big no-no. Services like &lt;a href=https://gofile.io/ target=_blank&gt;Gofile.io&lt;/a&gt; can be great options for storing and sharing ISO files.&lt;h3&gt;Be gentle with GitHub-hosted runners: the whole process can be computationally expensive&lt;/h3&gt;&lt;a href=https://youtu.be/60A9WaeDMYU title="Sensei It's My First Time, Please Be Gentle XD"&gt;&lt;img src="https://markdown-videos-api.jorgenkh.no/youtube/60A9WaeDMYU?width=1280&amp;amp;height=720" alt="Sensei It's My First Time, Please Be Gentle XD"&gt;&lt;/a&gt;
&lt;p&gt;Here is an example of my resource consumption:&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/LD573nDr/Screenshot-2026-09-25-at-00-53-54-Workflow-runs-Pratyay360-blueee-os-png.png&gt;
&lt;figcaption&gt;GitHub Actions Workflow Run&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;h3&gt;You can check out the repository building these ISOs here: &lt;a href=https://github.com/Pratyay360/blueee-os target=_blank&gt;Pratyay360/blueee-os&lt;/a&gt;.&lt;/h3&gt;&lt;h2&gt;Recommended Base Images for Customization&lt;/h2&gt;&lt;p&gt;If you are looking to start building your own custom &lt;code&gt;bootc&lt;/code&gt; images, here are popular upstream base image registries:&lt;table&gt;&lt;tr&gt;&lt;th align=left&gt;Distribution&lt;th align=left&gt;Base Image Registry&lt;tr&gt;&lt;td align=left&gt;Fedora&lt;td align=left&gt;&lt;a href=https://quay.io/organization/fedora-ostree-desktops target=_blank&gt;fedora-ostree-desktops&lt;/a&gt;&lt;tr&gt;&lt;td align=left&gt;AlmaLinux&lt;td align=left&gt;&lt;a href=https://quay.io/organization/almalinuxorg target=_blank&gt;almalinuxorg&lt;/a&gt;&lt;tr&gt;&lt;td align=left&gt;CentOS Stream&lt;td align=left&gt;&lt;a href=https://quay.io/organization/centos-bootc target=_blank&gt;centos-bootc&lt;/a&gt;&lt;/table&gt;</description>
          <link>https://www.pratyay.online/blog/1790272985/</link>
          <pubDate>Thu, 24 Sep 2026 18:03:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1790272985/</guid>
        </item>
      
    
      
        <item>
          <title>I have automated most of my social media accounts for free.</title>
          <description>&lt;h2&gt;Recently, I have started writing blogs as a hobby to discipline myself about building a habit which is consistent&lt;/h2&gt;&lt;p&gt;However, writing is only half the battle. As the saying goes, “If people don’t know your product exists, they can’t judge its value.”&lt;p&gt;To seriously grow, and sharing whatever I do with a wider audience is essential.&lt;h3&gt;But Who Is My Target Audience?&lt;/h3&gt;&lt;p&gt;People who are curious about technology and are accustomed to read articles.&lt;br&gt;These specific requirements make my target audience quite niche,&lt;br&gt;Which limits my choices of social media platforms even more limited.&lt;br&gt;To keep people informed about my work, I can use microblogging platforms like (X twitter/threads/blue sky/ mastodon) and LinkedIn.&lt;p&gt;But writing 10 different post on 10 different platforms is a lot of work, and I am not into that.&lt;blockquote&gt;&lt;p&gt;Also, as programmers, we tend to be “lazy” as we hate repetitive tasks,&lt;br&gt;also on the other side we love doing overengineering to solve simple problems.&lt;/blockquote&gt;&lt;h3&gt;&lt;em&gt;Here is what I have so far:&lt;/em&gt;&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;A blog website built with a Static Site Generator (SSG).&lt;li&gt;An automatically generated RSS feed (handled automatically by the SSG).&lt;li&gt;A &lt;a href=https://en.wikipedia.org/wiki/Cron target=_blank&gt;Cronjob&lt;/a&gt;  to check for new posts.&lt;/ol&gt;&lt;p&gt;First I have had planned to use some action runners on schedule like github actions, to check and trigger based on rss feed, but after I started, going through the different developer sections, I felt that’s not worth my time as someone has already done so.&lt;br&gt;So, Why reinvent the wheel when there are already some good solutions available.&lt;h3&gt;&lt;em&gt;Exploring existing automation solutions&lt;/em&gt;&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;&lt;del&gt;iftttt.com (This  is  free on paper only , and unusable )&lt;/del&gt;&lt;li&gt;zapier.com (Very limited free plan, but at least allows performing basic automation for free)&lt;li&gt;&lt;strong&gt;windmill.com (cloud: Very limited free plan, Can be self hosted) has a steep learning curve.&lt;/strong&gt;&lt;li&gt;&lt;strong&gt;make.com (free plan isn’t that limited and this is the simplest solution in terms of ui).&lt;/strong&gt;&lt;li&gt;&lt;strong&gt;zohoflow (free tier has good limits too but should be used along with &lt;a href=https://www.inoreader.com/ target=_blank&gt;https://www.inoreader.com/&lt;/a&gt;)&lt;/strong&gt;&lt;li&gt;&lt;strong&gt;activepieces (good but don’t use ai copilot here)&lt;/strong&gt;*&lt;/ol&gt;&lt;p&gt;&lt;strong&gt;I will be using &lt;a href=http://make.com target=_blank&gt;make.com&lt;/a&gt; but how to use make.com to automate my social media posting?&lt;/strong&gt;&lt;ol&gt;&lt;li&gt;X (twitter) api  used to be free, but that’s now paid so using official API dropped. ❌&lt;li&gt;For threads. though it’s free but automation platforms are yet to integrate it.&lt;li&gt;mastodon is free to use in most of the platforms.&lt;li&gt;same for Bluesky  but it isn’t free on zapier .&lt;li&gt;Buffer is free on most of the automation platforms.&lt;/ol&gt;&lt;p&gt;I have only found &lt;a href=https://eu1.make.com/public/shared-scenario/GT23pzkTgzg/integration-rss-linked-in-bluesky target=_blank&gt;make.com&lt;/a&gt; to be the most suitable automation platform for free tier users and power users, as  It barely restricts any core feature.&lt;p&gt;The only drawback is the limited monthly allowance of 1,000 credits. Similar to a Deterministic Finite Automaton, each step consumes one credit, regardless of whether the operation succeeds or fails.&lt;h4&gt;But why am I telling you all of this and how is this free. Also will you be posting on such unsupported social media platforms manually ?&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;Answer is no. You don’t as we are going to use &lt;a href=https://buffer.com/join/2705ce7aba72db2c064eae8f641e3bc969d060d68927db95716ea19233461d51 target=_blank&gt;buffer&lt;/a&gt;.&lt;/strong&gt;&lt;p&gt;&lt;a href=https://buffer.com/join/2705ce7aba72db2c064eae8f641e3bc969d060d68927db95716ea19233461d51 target=_blank&gt;Buffer&lt;/a&gt; is a social media aggregator and management platform which can manage up to 3 accounts for free&lt;p&gt;The X (Twitter) API is no longer free, so I use &lt;a href=https://buffer.com/join/2705ce7aba72db2c064eae8f641e3bc969d060d68927db95716ea19233461d51 target=_blank&gt;Buffer&lt;/a&gt; for that part of the workflow.&lt;p&gt;&lt;a href=https://eu1.make.com/public/shared-scenario/GT23pzkTgzg/integration-rss-linked-in-bluesky target=_blank&gt;Make.com&lt;/a&gt; lets you connect up to 3 actions in a chain on the free plan. At the time of writing, using my referral link may include a promotional credit offer; check Make’s current terms and pricing before relying on it.&lt;p&gt;Buffer is generous enough to allow you to connect 3 social media accounts and manage them for free.&lt;br&gt;But you can at most post 10 posts per day on free plan which is more than enough for me.&lt;p&gt;So you can hook 3 accounts to buffer and two on &lt;a href=https://eu1.make.com/public/shared-scenario/GT23pzkTgzg/integration-rss-linked-in-bluesky target=_blank&gt;make.com.&lt;/a&gt;&lt;blockquote&gt;&lt;p&gt;The workflow consumes 4 credits per new post. If you post too frequently, you will be limited to approximately 8 per day (4 credits × 30 days × 8 runs = 960 credits).&lt;p&gt;To avoid exhausting the free limits, it is recommended to poll executions at 3 hour intervals. Additionally, since the workflow spends most of its time polling, it only consumes one task per run.&lt;/blockquote&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://github.com/user-attachments/assets/a1f0305f-489e-4db4-bd8f-0c2a4e17048e&gt;
&lt;figcaption&gt;Untitled1&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://github.com/user-attachments/assets/76488289-af8a-42d3-b16a-5559d02037df&gt;
&lt;figcaption&gt;Untitled&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://github.com/user-attachments/assets/c6150ea7-bdf5-4333-8600-1d710dc30ea8&gt;
&lt;figcaption&gt;Untitled2&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://github.com/user-attachments/assets/2e2778ed-f48f-48d9-ae06-17f80d41b723&gt;
&lt;figcaption&gt;Untitled3&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;a href=https://eu1.make.com/public/shared-scenario/GT23pzkTgzg/integration-rss-linked-in-bluesky target=_blank&gt;Visit make with my referral link. (for 1st month free pro)&lt;/a&gt;&lt;p&gt;All this automation for absolutely free and with no credit card.</description>
          <link>https://www.pratyay.online/blog/1789816067/</link>
          <pubDate>Sat, 19 Sep 2026 11:07:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1789816067/</guid>
        </item>
      
    
      
        <item>
          <title>Navigating around bootc and immutable/atomic distros</title>
          <description>&lt;h2&gt;So, as you all know I have been a Linux user for the past 5-6 years&lt;/h2&gt;&lt;p&gt;And have installed os 100s of times on my system because of kernel panics or some bad driver bricking my machine, this made me an avid &lt;a href=https://www.linux-magazine.com/Online/Blogs/Off-the-Beat-Bruce-Byfield-s-Blog/Distro-hopping target=_blank&gt;distro hopper.&lt;/a&gt;&lt;p&gt;As I have already written about the approx timeline of my distro hopping, I’m not going to repeat it here.&lt;p&gt;I personally loved KDE Plasma, and its look and feel overall. The simplicity and customization options are something I loved the most&lt;p&gt;And Fedora has the best experience with KDE Plasma.&lt;p&gt;And for the past 1 - 1.5 years, topics related to DevOps, like KVM, docker-compose, and reproducible builds, sparked curiosity in me. I got a bit deep digging into containerization, and how containerization works with namespaces and cgroups is very interesting. Though Docker has become synonymous with containers itself. But all the container runtimes follow OCI specs (Open Container Initiative) .&lt;h3&gt;Podman&lt;/h3&gt;&lt;p&gt;Podman is a daemonless container runtime. This means Podman just runs the service and vanishes from the entire process tree; unlike containerd or Docker, we don’t need to run a containerd or dockerd daemon. With Docker, running killall docker /containerd &amp;nbsp;just stops all your running containers by default.&lt;p&gt;Podman is specifically impressive because of its rootless nature. One can run any number of containers as an unprivileged user and perform privileged operations within the container, similar to a fake-root environment. &amp;nbsp;Btw, this is the exact same approach used in tools like &lt;a href=https://github.com/rootless-containers/rootlesskit target=_blank&gt;rootlesskit&lt;/a&gt;, very similar to ports in FreeBSD, or MacPorts on Apple.&lt;p&gt;Podman doesn’t run persistently on your system, making it incredibly memory efficient.&lt;br&gt;The toolchain is practically identical to Docker; you can use podman build, podman run, podman push, etc.&lt;br&gt;Furthermore, Podman’s build tool, Buildah, is noticeably faster, making it preferable for building images quickly and efficient specially in CI/CD environments.&lt;p&gt;I probably don’t need to give a re-introduction to containers; you already know that if you’re here.&lt;br&gt;Tools like Toolbox or Distrobox just utilize this exact approach of unprivileged containers sharing the host’s user space, specifically mounting&lt;br&gt;$HOME (like /home/user/).&lt;p&gt;TBH, I personally love the philosophy behind OSTree-based operating systems: the idea of atomic updates, either successful or failed, is the exact same reason making os tree virtually unbreakable.&lt;p&gt;The concept of layering here is brilliant. The base image is immutable, and any system changes are stored in a separate layer. This makes it incredibly easy to roll back to a previous state if something gets messed up. It gives you an unbeatable safety net, and the logic is identical to how standard OCI container images are layered.&lt;p&gt;But layering packages onto the host OS isn’t always the ideal thing to do. The best approach is to use a Toolbox container for installing and running your day-to-day apps.&lt;p&gt;You can create a random Toolbox container and install any app you want. No matter how many containers you spin up, if their base image is the same, they will share that underlying image and won’t cost you extra gigabytes in storage. Sharing that base layer saves disk space and makes managing multiple environments effortless.&lt;p&gt;But aren’t containers bloated? Don’t they cost you a lot of storage space (the container tax)? The answer is both yes and no. Yes, it does cache a lot of data, but the benefits are well worth the trade-off. You get a super solid base OS while keeping the flexibility of other distros. I’ve installed paru (the Arch User Repository helper) inside a Toolbox container, installed .deb and .rpm packages, and things just work.&lt;br&gt;Distrobox or Toolbox?&lt;p&gt;I want something easy. I don’t want to type toolbox enter every time I need to run a basic app.&lt;p&gt;As I’ve mentioned, Toolbox containers generally respect the host machine a bit more (plus PAM is shared with the host), but Distrobox is undeniably convenient because of the export feature like &lt;code&gt;distrobox-export --app /usr/bin/ghostty&lt;/code&gt; and &lt;code&gt;distrobox-export --bin /usr/bin/ghostty&lt;/code&gt;&lt;p&gt;But what if I share something that makes Toolbox just as convenient or better ?&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;curl&lt;/span&gt; &lt;span class=constant&gt;-fsSL&lt;/span&gt; &lt;span class=constant&gt;https://github.com/Pratyay360/toolbox-export/raw/refs/heads/main/install.sh&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class="constant function"&gt;bash&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Benefits of ostree ?&lt;/h3&gt;&lt;p&gt;libostree or Ostree is like a version control system similar to git but for the entire os. It is a crucial component of your atomic distro. Either you update your machine reboot, update completes successfully or unsuccessfully.&lt;p&gt;Even after success, ostree based os can still rollback to the previous state if anything is not working. resetting your os back to previous commit just works. It’s too hard to mess with such a&lt;p&gt;resilient system. Specially if you are using, your own recipie to build os Though it’s hard to make a faulty container image. You  can identify any flaws during the image build process.&lt;h3&gt;So, is everything perfect with Toolbox containers?&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;Networking related apps like wireshark, airmon-ng etc etc. and drivers don’t play nice; I am yet to use  installed in containerd , though script evaluation is fast. Also, I’ve noticed apps installed via Distrobox often fail to honour the system theme, on the other side Toolbox respects the system theme + apps share the same secret store, in my case it’s kde wallet, and the apps I have installed in Toolbox never made me feel like they are alien to my system.&lt;/ol&gt;&lt;h3&gt;What if I don’t want the prepacked apps that comes with Fedora can i modify without pinning?&lt;/h3&gt;&lt;h4&gt;What if I want to remove Konsole and use Ghostty as my default without layering &amp;amp; pinning it onto my host os? I’ve actually run Ghostty installed inside an Arch Linux Toolbx as my default terminal, and it felt native&lt;/h4&gt;&lt;p&gt;If you want absolute control on what software should be available on os and what not, I highly suggest making your own customized bootc image. Believe me, it is as easy as sipping a cup of tea thanks to tools like Bluebuild or OSBuild and the community around it.&lt;p&gt;I personally have 3 to 4 Toolbox images running continuously on my system, containing most of my daily apps.&lt;p&gt;One containing everything development related like ides, editors.&lt;p&gt;One containing all the media and specially CLI tools in a arch based toolbox. and another just for testing my &lt;a href=https://github.com/pratyay360/drawx target=_blank&gt;apps&lt;/a&gt;. All my web browsers are downloaded via the arch toolbox.&lt;p&gt;And a Debian based toolbox just for testing my apps. and I use that ephemerally.&lt;/p&gt;&lt;a href=https://asciinema.org/a/nxr4bAotEDlCuwvS title=asciicast&gt;&lt;img src=https://asciinema.org/a/nxr4bAotEDlCuwvS.svg alt=asciicast&gt;&lt;/a&gt;
&lt;p&gt;See the disk usage of my system by containers above.&lt;p&gt;By the way, I am a full stack developer. And I have a graveyard of dozens of late-night ideas, abandoned projects, and half finished stuffs. You can believe me when I say the storage utilized by those 10-15 project folders easily takes up 2 to 2.5x the amount of storage that all my containers do! and that’s just from npm’s node_modules only and rust, go cache is yet to look into.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/whHVmSGH/image.png&gt;
&lt;figcaption&gt;img&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;</description>
          <link>https://www.pratyay.online/blog/1789669704/</link>
          <pubDate>Thu, 17 Sep 2026 18:28:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1789669704/</guid>
        </item>
      
    
      
        <item>
          <title>Looking into redirect rules in dns</title>
          <description>&lt;h2&gt;How HTTPS Redirects Work Across Different Domains&lt;/h2&gt;&lt;p&gt;You have probably seen URL shorteners and domain redirects like this:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;https://old-domain.com&lt;/span&gt;
        &lt;span class="constant function"&gt;↓&lt;/span&gt;
&lt;span class="constant function"&gt;https://new-domain.com&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;One notable example was:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;perplexity.in&lt;/span&gt; &lt;span class=constant&gt;→&lt;/span&gt; &lt;span class=constant&gt;gemini.google.com&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;How can one domain securely redirect to a completely different domain without controlling the destination’s DNS, server, or TLS certificate?&lt;p&gt;The answer is simple: &lt;em&gt;The browser makes two separate connections&lt;/em&gt;.&lt;h2&gt;Redirects involve three separate systems&lt;/h2&gt;&lt;p&gt;A redirect uses:&lt;ol&gt;&lt;li&gt;&lt;strong&gt;DNS&lt;/strong&gt;: Directs the browser to the source server.&lt;li&gt;&lt;strong&gt;TLS&lt;/strong&gt;: Secures the connection to the source domain.&lt;li&gt;&lt;strong&gt;HTTP&lt;/strong&gt;: Tells the browser to visit another URL.&lt;/ol&gt;&lt;p&gt;DNS itself does not redirect visitors. It only helps the browser find the server that will issue the redirect.&lt;h2&gt;What happens when you open the URL?&lt;/h2&gt;&lt;p&gt;Suppose you visit:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;https://old-domain.com/page?id=10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;1. DNS resolves the source domain&lt;/h3&gt;&lt;p&gt;The browser asks DNS where &lt;code&gt;old-domain.com&lt;/code&gt; is hosted.&lt;p&gt;DNS returns the address of a server, CDN, or edge provider such as Cloudflare.&lt;h3&gt;2. HTTPS is established&lt;/h3&gt;&lt;p&gt;The browser connects to the server, which presents a valid TLS certificate for:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;old-domain.com&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The server does not need a certificate for the destination domain.&lt;h3&gt;3. The server sends a redirect&lt;/h3&gt;&lt;p&gt;Instead of returning a web page, the server responds:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;HTTP/1.1&lt;/span&gt; &lt;span class=constant&gt;301&lt;/span&gt; &lt;span class=constant&gt;Moved&lt;/span&gt; &lt;span class=constant&gt;Permanently&lt;/span&gt;
&lt;span class="constant function"&gt;Location:&lt;/span&gt; &lt;span class=constant&gt;https://new-domain.com/page?id=10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;4. The browser opens the new URL&lt;/h3&gt;&lt;p&gt;The browser now makes a completely new connection to &lt;code&gt;new-domain.com&lt;/code&gt;.&lt;p&gt;That domain presents its own TLS certificate.&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;Browser&lt;/span&gt; &lt;span class=constant&gt;──HTTPS──&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt; old-domain.com
&lt;span class="constant function"&gt;Browser&lt;/span&gt; &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;──301 redirect── old-domain.com

&lt;span class="constant function"&gt;Browser&lt;/span&gt; &lt;span class=constant&gt;──HTTPS──&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt; new-domain.com
&lt;span class="constant function"&gt;Browser&lt;/span&gt; &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;──200 OK── new-domain.com
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;This is why the source domain does not need control over the destination.&lt;/h3&gt;&lt;h2&gt;Does the destination need to approve the redirect?&lt;/h2&gt;&lt;p&gt;No.&lt;p&gt;Redirecting to a public URL is similar to linking to it. The destination does not need to add the source domain to its DNS or server configuration.&lt;p&gt;The destination simply receives a normal request:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;GET&lt;/span&gt; &lt;span class=constant&gt;/page?id=10&lt;/span&gt; &lt;span class=constant&gt;HTTP/1.1&lt;/span&gt;
&lt;span class="constant function"&gt;Host:&lt;/span&gt; &lt;span class=constant&gt;new-domain.com&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It may not even know that the visitor arrived through a redirect.&lt;p&gt;However, the destination must support the requested path, method, and parameters. A redirect cannot force an unrelated server to accept an unsupported request.&lt;h2&gt;Which redirect status should you use?&lt;/h2&gt;&lt;p&gt;The most useful redirect codes are:&lt;ul&gt;&lt;li&gt;&lt;strong&gt;301&lt;/strong&gt;: permanent redirect&lt;li&gt;&lt;strong&gt;302&lt;/strong&gt;: temporary redirect&lt;li&gt;&lt;strong&gt;303&lt;/strong&gt;: redirect to another page using &lt;code&gt;GET&lt;/code&gt;&lt;li&gt;&lt;strong&gt;307&lt;/strong&gt;: Temporary redirect that preserves the request method&lt;li&gt;&lt;strong&gt;308&lt;/strong&gt;: Permanent redirect that preserves the request method&lt;/ul&gt;&lt;p&gt;The important distinction is method preservation.&lt;p&gt;With &lt;code&gt;301&lt;/code&gt; and &lt;code&gt;302&lt;/code&gt;, a browser may change a &lt;code&gt;POST&lt;/code&gt; request into a &lt;code&gt;GET&lt;/code&gt;. Use &lt;code&gt;307&lt;/code&gt; or &lt;code&gt;308&lt;/code&gt; When the original method and body must remain unchanged. &lt;a href=https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections target=_blank&gt;1&lt;/a&gt;&lt;p&gt;For example:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;POST&lt;/span&gt; &lt;span class=constant&gt;/api/order&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After a &lt;code&gt;308&lt;/code&gt; Redirect, the browser or API client sends:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;POST&lt;/span&gt; &lt;span class=constant&gt;/api/order&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to the new domain.&lt;p&gt;Still, redirects are not transparent proxies. Authentication, cookies, CORS rules and API compatibility can prevent a redirected request from working correctly.&lt;h2&gt;Other 3xx status codes&lt;/h2&gt;&lt;p&gt;Not every &lt;code&gt;3xx&lt;/code&gt; response is a URL redirect:&lt;ul&gt;&lt;li&gt;&lt;strong&gt;304 Not Modified&lt;/strong&gt;: Tells the browser to use its cached copy&lt;li&gt;&lt;strong&gt;305 Use Proxy&lt;/strong&gt;: deprecated&lt;li&gt;&lt;strong&gt;306&lt;/strong&gt;: unused&lt;/ul&gt;&lt;p&gt;Therefore, the commonly useful redirect codes are &lt;code&gt;301&lt;/code&gt;, &lt;code&gt;302&lt;/code&gt;, &lt;code&gt;303&lt;/code&gt;, &lt;code&gt;307&lt;/code&gt; and &lt;code&gt;308&lt;/code&gt;. &lt;a href=https://www.rfc-editor.org/rfc/rfc9110.html target=_blank&gt;2&lt;/a&gt;&lt;h2&gt;How Cloudflare handles redirects&lt;/h2&gt;&lt;p&gt;Cloudflare can perform a redirect without requiring a real origin server.&lt;p&gt;You can create proxied records such as:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;A&lt;/span&gt;    &lt;span class=constant&gt;@&lt;/span&gt;      &lt;span class=constant&gt;192.0.2.1&lt;/span&gt;    &lt;span class=constant&gt;Proxied&lt;/span&gt;
&lt;span class="constant function"&gt;A&lt;/span&gt;    &lt;span class=constant&gt;www&lt;/span&gt;    &lt;span class=constant&gt;192.0.2.1&lt;/span&gt;    &lt;span class=constant&gt;Proxied&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;192.0.2.1&lt;/code&gt; Is not the actual redirect server. It is a placeholder address that allows requests to enter Cloudflare’s network, where a Redirect Rule or Worker returns the redirect response. &lt;a href=https://developers.cloudflare.com/fundamentals/manage-domains/redirect-domain/ target=_blank&gt;3&lt;/a&gt;&lt;p&gt;The process is:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;Visitor&lt;/span&gt;
   &lt;span class="constant function"&gt;↓&lt;/span&gt;
&lt;span class="constant function"&gt;Cloudflare&lt;/span&gt; &lt;span class=constant&gt;DNS&lt;/span&gt;
   &lt;span class="constant function"&gt;↓&lt;/span&gt;
&lt;span class="constant function"&gt;Cloudflare&lt;/span&gt; &lt;span class=constant&gt;edge&lt;/span&gt; &lt;span class=constant&gt;server&lt;/span&gt;
   &lt;span class="constant function"&gt;↓&lt;/span&gt;
&lt;span class="constant function"&gt;TLS&lt;/span&gt; &lt;span class=constant&gt;certificate&lt;/span&gt; &lt;span class=constant&gt;for&lt;/span&gt; &lt;span class=constant&gt;the&lt;/span&gt; &lt;span class=constant&gt;source&lt;/span&gt; &lt;span class=constant&gt;domain&lt;/span&gt;
   &lt;span class="constant function"&gt;↓&lt;/span&gt;
&lt;span class="constant function"&gt;301/302/307/308&lt;/span&gt; &lt;span class=constant&gt;redirect&lt;/span&gt;
   &lt;span class="constant function"&gt;↓&lt;/span&gt;
&lt;span class="constant function"&gt;Destination&lt;/span&gt; &lt;span class=constant&gt;domain&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cloudflare can automatically issue and renew a trusted TLS certificate for activated domains, which is why HTTPS works without browser warnings. &lt;a href=https://developers.cloudflare.com/ssl/edge-certificates/universal-ssl/ target=_blank&gt;4&lt;/a&gt;&lt;a href=https://developers.cloudflare.com/ssl/edge-certificates/universal-ssl/enable-universal-ssl/ target=_blank&gt;5&lt;/a&gt;&lt;h2&gt;Can you redirect an apex domain?&lt;/h2&gt;&lt;p&gt;Yes.&lt;p&gt;It is true that a traditional CNAME record normally cannot be placed at the zone apex. But a CNAME is not required for redirection.&lt;p&gt;You can redirect an apex domain using:&lt;ul&gt;&lt;li&gt;An &lt;code&gt;A&lt;/code&gt; or &lt;code&gt;AAAA&lt;/code&gt; record&lt;li&gt;A proxied placeholder record&lt;li&gt;CNAME flattening&lt;li&gt;An &lt;code&gt;ALIAS&lt;/code&gt; or &lt;code&gt;ANAME&lt;/code&gt; record&lt;li&gt;Registrar-level forwarding&lt;li&gt;A server or edge function&lt;/ul&gt;&lt;p&gt;For example, Cloudflare supports redirecting both:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;example.com&lt;/span&gt;
&lt;span class="constant function"&gt;www.example.com&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;using proxied &lt;code&gt;A&lt;/code&gt; Records. &lt;a href=https://developers.cloudflare.com/fundamentals/manage-domains/redirect-domain/ target=_blank&gt;3&lt;/a&gt;&lt;h2&gt;How search engines handle redirects&lt;/h2&gt;&lt;p&gt;Search engines generally interpret:&lt;ul&gt;&lt;li&gt;&lt;strong&gt;301 or 308&lt;/strong&gt; as a permanent move&lt;li&gt;&lt;strong&gt;302 or 307&lt;/strong&gt; as a temporary move&lt;/ul&gt;&lt;p&gt;A permanent redirect tells Google that the destination should eventually replace the source URL in search results. A temporary redirect usually tells Google to keep the source URL indexed. &lt;a href=https://developers.google.com/search/docs/crawling-indexing/301-redirects target=_blank&gt;6&lt;/a&gt;&lt;p&gt;However, a redirect is only a signal. Search engines may also examine:&lt;ul&gt;&lt;li&gt;Whether the destination contains similar content&lt;li&gt;Whether paths are mapped correctly&lt;li&gt;Canonical tags&lt;li&gt;Internal links and sitemaps&lt;li&gt;Redirect chains&lt;li&gt;Spam or abuse signals&lt;/ul&gt;&lt;p&gt;For SEO, map each old page to its closest replacement:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;old.example/docs/install&lt;/span&gt;
        &lt;span class="constant function"&gt;↓&lt;/span&gt;
&lt;span class="constant function"&gt;new.example/docs/install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Avoid redirecting every old page to an unrelated homepage.&lt;h2&gt;Final takeaway&lt;/h2&gt;&lt;p&gt;A secure cross domain redirect works because:&lt;ul&gt;&lt;li&gt;DNS Sends traffic to the redirect provider.&lt;li&gt;TLS Secures the source domain.&lt;li&gt;HTTP Tells the browser where to go next.&lt;li&gt;The destination  Handles its own DNS and TLS separately.&lt;/ul&gt;&lt;p&gt;The source domain never serves the destination’s certificate. It simply returns a response such as:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;HTTP/1.1&lt;/span&gt; &lt;span class=constant&gt;301&lt;/span&gt; &lt;span class=constant&gt;Moved&lt;/span&gt; &lt;span class=constant&gt;Permanently&lt;/span&gt;
&lt;span class="constant function"&gt;Location:&lt;/span&gt; &lt;span class=constant&gt;https://destination.example&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The browser then starts a new, independent HTTPS connection to the destination.&lt;p&gt;That is the basic mechanism behind URL shorteners, branded links, domain forwarding and website migrations.</description>
          <link>https://www.pratyay.online/blog/1789472151/</link>
          <pubDate>Tue, 15 Sep 2026 11:35:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1789472151/</guid>
        </item>
      
    
      
        <item>
          <title>Using chezmoi to manage dotfiles on</title>
          <description>&lt;p&gt;&lt;a href=https://www.chezmoi.io/ target=_blank&gt;CHEZMOI&lt;/a&gt; &amp;nbsp;is a nice, modern, secure dotfiles manager with built-in support for handling secrets and provides a nice configurable/hackable ecosystem to tinker with. Chezmoi is a batteries-included dotfiles manager.&lt;p&gt;Unlike yadm, chezmoi doesn’t just create a git repo of your user space. &amp;nbsp;Also, &lt;code&gt;chezmoi&lt;/code&gt; Supports integration with multiple password managers&lt;p&gt;Also, chezmoi is super nice with dotfiles. For example, &lt;code&gt;.bashrc&lt;/code&gt; will be named as &lt;code&gt;dot_bashrc&lt;/code&gt;&lt;p&gt;And if encrypted with chezmoi, it will be stored as &lt;code&gt;encrypted_dot_bashrc.age&lt;/code&gt;&lt;p&gt;How to use age with chezmoi?&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;chezmoi&lt;/span&gt; &lt;span class=constant&gt;age-keygen&lt;/span&gt; &lt;span class=constant&gt;-o&lt;/span&gt; &lt;span class=constant&gt;key.txt&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;chezmoi comes prepackaged with age. You just can run any age related command with just a chezmoi prefix&lt;p&gt;age ==&amp;gt; chezmoi age&lt;p&gt;And everything stays the same.&lt;p&gt;You can use chezmoi with age encryption with ssh, pgp, passphrase for recipient …&lt;p&gt;I don’t recommend using a remote password manager to store secret values as I have faced delay in shell startup due to slow internet or DNS related issues.&lt;p&gt;$callout💡 Always remember AGE_ (in caps) is your private key and should be stored safely ..and the one age.. (in small) is your public key and we will be encrypting this to this public key as an recipient $&lt;p&gt;The answer is yes and no.&lt;p&gt;If you have added a file as encrypted, Chezmoi will always keep that encrypted remotely.&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;chezmoi&lt;/span&gt; &lt;span class=constant&gt;add&lt;/span&gt; &lt;span class=constant&gt;--encrypt&lt;/span&gt; &lt;span class=constant&gt;~/.profile&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;will be stored as encrypted_dot_profile.age&lt;p&gt;You can also use your GitHub account for the AGE recipient, since AGE can encrypt to SSH public keys. You can fetch the public SSH keys with:&lt;p&gt;&lt;code&gt;curl https://github.com/&amp;amp;lt;your username&amp;amp;gt;.keys&lt;/code&gt;&lt;p&gt;For me, that’s&lt;p&gt;&lt;code&gt;https://github.com/pratyay360.keys&lt;/code&gt;&lt;p&gt;This convention is followed by all the Gitforges, like GitLab, Codeberg, Source hut, etc.&lt;p&gt;If you want to use an SSH public key as the recipient in chezmoi, the general flow is:&lt;p&gt;Pick the recipient key you want to encrypt to (one line that starts with `ssh-rsa`).&lt;p&gt;Configure chezmoi/age to use it as the recipient (or export it in your shell), then add files with `–encrypt`.&lt;p&gt;You can integrate this with chezmoi configuration by hacking in your way.&lt;p&gt;If you generated an age key pair using:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;chezmoi&lt;/span&gt; &lt;span class=constant&gt;age-keygen&lt;/span&gt; &lt;span class=constant&gt;-o&lt;/span&gt; &lt;span class=constant&gt;key.txt&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;then:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;key.txt&lt;/span&gt; &lt;span class=constant&gt;contains&lt;/span&gt; &lt;span class=constant&gt;your&lt;/span&gt; &lt;span class=constant&gt;identity&lt;/span&gt; (&lt;span class="constant function"&gt;private&lt;/span&gt; &lt;span class=constant&gt;key&lt;/span&gt;) &lt;span class="constant function"&gt;AGE\_&lt;/span&gt;&lt;span class=constant&gt;(&lt;/span&gt;&lt;span class="constant function"&gt;allcaps&lt;/span&gt;).

&lt;span class="constant function"&gt;The&lt;/span&gt; &lt;span class=constant&gt;corresponding&lt;/span&gt; &lt;span class=constant&gt;age1...&lt;/span&gt; &lt;span class=constant&gt;string&lt;/span&gt; &lt;span class=constant&gt;inside&lt;/span&gt; &lt;span class=constant&gt;that&lt;/span&gt; &lt;span class=constant&gt;file&lt;/span&gt; &lt;span class=constant&gt;is&lt;/span&gt; &lt;span class=constant&gt;the&lt;/span&gt; &lt;span class=constant&gt;recipient&lt;/span&gt; (&lt;span class="constant function"&gt;public&lt;/span&gt; &lt;span class=constant&gt;key&lt;/span&gt;).
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;So, I am storing my secrets in plaintext in my dot files isn’t that bad and will not chezmoi mess by leaking my secrets&lt;/h2&gt;&lt;h3&gt;Answer is yes and no&lt;/h3&gt;&lt;p&gt;1st you need to configure a chezmoi configuration&lt;p&gt;something like this:-&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class=string&gt;encryption = "age"
[git]
autoCommit = true
autoPush = true
[delta]
by-side = true
numbers = true
[age]
identity = "/home/&amp;lt;username&amp;gt;/.config/chezmoi/keys.txt"
recipient = "public age key here"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you have added a file as encrypted chezmoi will remember that and always keep that encrypted remotely.&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;chezmoi&lt;/span&gt; &lt;span class=constant&gt;add&lt;/span&gt; &lt;span class=constant&gt;--encrypt&lt;/span&gt; &lt;span class=constant&gt;~/.profile&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;will be stored as encrypted_dot_profile.age&lt;p&gt;Re-tracking a file after manual edits&lt;p&gt;If you edited a file directly (instead of using &lt;code&gt;chezmoi edit&lt;/code&gt;), that’s fine.&lt;p&gt;If you want, chezmoi to re track the file from your home directory into the source state, run:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;chezmoi&lt;/span&gt; &lt;span class=constant&gt;re-add&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will re-add the file according to your current configuration (including encryption rules), so the repo still only stores the encrypted version when applicable.</description>
          <link>https://www.pratyay.online/blog/1789073130/</link>
          <pubDate>Thu, 10 Sep 2026 20:45:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1789073130/</guid>
        </item>
      
    
      
        <item>
          <title>How to Install Software from a Tarball on Linux</title>
          <description>&lt;h2&gt;First and foremost, a tarball is not an installer. It is simply an archive containing an application and its component files. Unlike .deb or .rpm packages, a tarball generally does not tell the system where the application should live, how it should be exposed in your &lt;code&gt;$PATH&lt;/code&gt;, or how it should appear in your application launcher&lt;/h2&gt;&lt;p&gt;That is both its strength and its weakness. For user space installations, we can choose where the application lives without modifying the system at all.&lt;p&gt;We will be using   &lt;code&gt;$HOME/.tarball-installations&lt;/code&gt;&lt;p&gt;&lt;a href=https://github.com/spookyorange target=_blank&gt;By taking inspiration from GitHub user spooky orange&lt;/a&gt;.&lt;p&gt;We will use:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function operator"&gt;$&lt;/span&gt;&lt;span class="constant function property"&gt;HOME&lt;/span&gt;&lt;span class="constant function"&gt;/.tarball-installations/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As the root directory for installed applications using the tarball method.&lt;p&gt;For example:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;~/.tarball-installations/&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;app-one/&lt;/span&gt;
&lt;span class="constant function"&gt;├──&lt;/span&gt; &lt;span class=constant&gt;app-two/&lt;/span&gt;
&lt;span class="constant function"&gt;└──&lt;/span&gt; &lt;span class=constant&gt;app-three/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each application gets its own directory, keeping the installation isolated from the rest of the system.&lt;p&gt;The next step is making these applications feel like normal Linux applications.&lt;p&gt;There are essentially three things we need to handle:&lt;p&gt;Extract the tarball somewhere under &lt;code&gt;~/.tarball-installations/&lt;/code&gt;&lt;p&gt;Expose the executable through &lt;code&gt;$PATH&lt;/code&gt;,&lt;p&gt;so we can launch it from a terminal without typing its full path. To achieve this, we can create a symlink in the system. For example:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;ln&lt;/span&gt; &lt;span class=constant&gt;-s&lt;/span&gt; &lt;span class="constant operator"&gt;$&lt;/span&gt;&lt;span class="constant property"&gt;HOME&lt;/span&gt;&lt;span class=constant&gt;/.tarball-installations/app1/bin/app1&lt;/span&gt; &lt;span class="constant operator"&gt;$&lt;/span&gt;&lt;span class="constant property"&gt;HOME&lt;/span&gt;&lt;span class=constant&gt;/.local/bin/app1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Create a Desktop entry, when appropriate, so graphical applications appear in the application launcher. These often come included with the tarballs.&lt;p&gt;None of this requires &lt;code&gt;sudo&lt;/code&gt;.&lt;p&gt;And that, in my opinion, the important part of this approach is that the application belongs to the user, so the installation should belong to the user too.&lt;p&gt;Process in simple.&lt;ol&gt;&lt;li&gt;Download the tarball&lt;/ol&gt;&lt;p&gt;Let’s assume we have downloaded:&lt;p&gt;&lt;code&gt;some-app-1.2.3-linux-x86_64.tar.gz&lt;/code&gt;&lt;p&gt;Instead of extracting it into &lt;code&gt;/opt&lt;/code&gt;, &lt;code&gt;/usr/local&lt;/code&gt;, or &lt;code&gt;/usr/bin&lt;/code&gt;, we create our user-owned installation directory:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;mkdir&lt;/span&gt; &lt;span class=constant&gt;-p&lt;/span&gt; &lt;span class="constant operator"&gt;$&lt;/span&gt;&lt;span class="constant property"&gt;HOME&lt;/span&gt;&lt;span class=constant&gt;/.tarball-installations&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then extract the application:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;tar&lt;/span&gt; &lt;span class=constant&gt;-xf&lt;/span&gt; &lt;span class=constant&gt;some-app-1.2.3-linux-x86_64.tar.gz&lt;/span&gt;
    &lt;span class="constant function"&gt;-C&lt;/span&gt; &lt;span class="constant string"&gt;"
&lt;/span&gt;&lt;span class="constant operator string"&gt;$&lt;/span&gt;&lt;span class="constant property string"&gt;HOME&lt;/span&gt;&lt;span class="constant string"&gt;/.tarball-installations"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Depending on how the archive was created, this might produce:&lt;pre&gt;&lt;code class=dockerfile&gt;~/.tarball-installations/
└── some-app-1.2.3/
    ├── some-app
    ├── lib/
    └── ...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That works, but there is an immediate problem: typing the following command…&lt;p&gt;Some app will not work from the terminal yet because it isn’t in your  &lt;code&gt;$PATH&lt;/code&gt;  .&lt;p&gt;Automation Scripts&lt;p&gt;Using this method, I have written and modified some shell scripts so that future me and others can refer to them.&lt;h3&gt;Firefox&lt;/h3&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;curl&lt;/span&gt; &lt;span class=constant&gt;-fsSL&lt;/span&gt; &lt;span class=constant&gt;https://codeberg.org/Pratyay360/tarballs/raw/branch/main/firefox.sh&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class="constant function"&gt;sh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Better Bird&lt;/h3&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;curl&lt;/span&gt; &lt;span class=constant&gt;-fsSL&lt;/span&gt; &lt;span class=constant&gt;https://codeberg.org/Pratyay360/tarballs/raw/branch/main/betterbird.sh&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class="constant function"&gt;sh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Flow Control (text editor)&lt;/h3&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;curl&lt;/span&gt; &lt;span class=constant&gt;-fsSL&lt;/span&gt; &lt;span class=constant&gt;https://codeberg.org/Pratyay360/tarballs/raw/branch/main/flow.sh&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class="constant function"&gt;sh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;AntigravityIDE tarball&lt;/h3&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;curl&lt;/span&gt; &lt;span class=constant&gt;-fsSL&lt;/span&gt; &lt;span class=constant&gt;https://codeberg.org/Pratyay360/tarballs/raw/branch/main/antigravity.sh&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class="constant function"&gt;sh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Vs code&lt;/h3&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;curl&lt;/span&gt; &lt;span class=constant&gt;-fsSL&lt;/span&gt; &lt;span class=constant&gt;https://codeberg.org/Pratyay360/tarballs/raw/branch/main/vscode.sh&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class="constant function"&gt;sh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;helium browser&lt;/h3&gt;&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;curl&lt;/span&gt; &lt;span class=constant&gt;-fsSL&lt;/span&gt; &lt;span class=constant&gt;https://codeberg.org/Pratyay360/tarballs/raw/branch/main/helium.sh&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class="constant function"&gt;sh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;&lt;blockquote&gt;&lt;p&gt;Safety Warning: Generally, it is recommended not to run random scripts from the internet on your machine. Always verify the contents of a script before executing it. You can do this by running curl &lt;code&gt;https://someScript.sh&lt;/code&gt; To inspect the code safely from your terminal.&lt;/blockquote&gt;&lt;/blockquote&gt;</description>
          <link>https://www.pratyay.online/devlog/1788803451/</link>
          <pubDate>Mon, 07 Sep 2026 17:50:00 +0000</pubDate>
          <guid>https://www.pratyay.online/devlog/1788803451/</guid>
        </item>
      
    
      
        <item>
          <title>Make CI/CD easy and predictable with mise</title>
          <description>&lt;h2&gt;To Begin with I Would Love to reintroduce You to my favorite Cli tool mise&lt;/h2&gt;&lt;p&gt;Mise is a version manager for dev tools &amp;amp; dependencies, a task runner, an environment variables manager all in one place. Mise ensures that every collaborator is working on the same environment and each every stage is reproducible.&lt;p&gt;In an earlier post, I have discussed, managing environment variables with mise. Today I will be discussing mise task runner feature.&lt;p&gt;For example, if you are using mise, then you can write task recipes to execute a particular job. One Mise task can have multiple child subtasks.&lt;p&gt;Like:&lt;pre&gt;&lt;code class=ocaml&gt;&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="function_builtin variable"&gt;tasks&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;install&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;description&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=string&gt;"Install JS dependencies"&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=string&gt;"nub install"&lt;/span&gt;

&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="function_builtin variable"&gt;tasks&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;build&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;description&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"build project"&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=string&gt;"nub run build"&lt;/span&gt;

&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="function_builtin variable"&gt;tasks&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;start&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;description&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"start project in production env"&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=string&gt;"nub run start"&lt;/span&gt;

&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="function_builtin variable"&gt;tasks&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;upload&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=string&gt;"surge ./dist test69.surge.sh"&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;description&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=string&gt;"deploy the built dir on surge"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;By the way surge is an awesome tool/service that deploys your static site for free on their CDN.&lt;p&gt;you can check them out: &lt;a href=https://surge.sh/ target=_blank&gt;https://surge.sh&lt;/a&gt;&lt;/blockquote&gt;&lt;p&gt;You can see basic tasks for a simple Node.js application. But you might ask, “How do I use this in CI/CD?”&lt;p&gt;The simple answer is:&lt;p&gt;With the help of mise as a task runner and with subtasks.&lt;pre&gt;&lt;code class=ocaml&gt;&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="function_builtin variable"&gt;tasks&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;ci&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;description&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=string&gt;"production build"&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=punctuation_bracket&gt;[&lt;/span&gt;
    &lt;span class="function function_builtin variable"&gt;mise&lt;/span&gt; &lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class="function_builtin variable"&gt;install&lt;/span&gt;
    &lt;span class="function_builtin variable"&gt;mise&lt;/span&gt; &lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class="function_builtin variable"&gt;build&lt;/span&gt;
&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;

&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="function_builtin variable"&gt;tasks&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;deploy&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;description&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"deploy project"&lt;/span&gt;
&lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=punctuation_bracket&gt;[&lt;/span&gt;
    &lt;span class="function function_builtin variable"&gt;mise&lt;/span&gt; &lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class="function_builtin variable"&gt;ci&lt;/span&gt;
    &lt;span class="function_builtin variable"&gt;mise&lt;/span&gt; &lt;span class="function_builtin variable"&gt;run&lt;/span&gt; &lt;span class="function_builtin variable"&gt;upload&lt;/span&gt;
&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Whenever someone runs &lt;code&gt;mise run ci&lt;/code&gt;, the output always stays deterministic, which you can test on your own machine. before pushing.&lt;h3&gt;And Now a Question Arises: What If?&lt;/h3&gt;&lt;p&gt;I’ve Written Something Wrong in Tasks Then Isn’t It the Same as Writing the Entire Pipeline?&lt;p&gt;The simple answer is no. Mise never allows you to ship an invalid configuration, plus you can always debug your tasks:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;mise&lt;/span&gt; &lt;span class=constant&gt;doctor&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Safety?&lt;/h3&gt;&lt;p&gt;Mise always checks and matches check-sums (SLSA) for each package downloaded. It’s generally suggested to not use “latest”, but to pin versions for example, &lt;a href=mailto:node@24.03&gt;node@24.03&lt;/a&gt; or &lt;a href=mailto:node@24.04&gt;node@24.04&lt;/a&gt;.&lt;p&gt;And if you want to containerize the app before running it:&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;mise&lt;/span&gt; &lt;span class=constant&gt;oci&lt;/span&gt; &lt;span class=constant&gt;run&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will spin up a container for you containing the application. (This is not suggested for chunk blobs) you can move those build artifacts to some alpine Linux or distro less container.&lt;p&gt;Want to Spin up a devcontainer ?&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;mise&lt;/span&gt; &lt;span class=constant&gt;gen&lt;/span&gt; &lt;span class=constant&gt;devcontainer&lt;/span&gt; &lt;span class=constant&gt;--write&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Mise handles most of the things for you.&lt;p&gt;It’s up to you and your creativity on, how well you write task recipes. Personally, I prefer writing atomic tasks so each task stays debug able, manageable and reproducible.&lt;p&gt;Mise can handle shell scripts as tasks too, and you can use virtually any CLI tool thanks to its nice plugin ecosystem.&lt;p&gt;Let’s Stay on Our Main Topic: CI.&lt;p&gt;In any CI platform like GitHub Actions, GitLab Pipelines, Bitbucket Pipelines, Forgejo CI, or any custom CI one thing is always common in all, your ability to run containers and running commands inside it.&lt;p&gt;Want to write a GitHub Action?&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;mise&lt;/span&gt; &lt;span class=constant&gt;gen&lt;/span&gt; &lt;span class=constant&gt;github-action&lt;/span&gt; &lt;span class=constant&gt;--write&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ci&lt;/span&gt;

&lt;span class="property string"&gt;on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;workflow_dispatch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;pull_request&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;push&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;

&lt;span class="property string"&gt;concurrency&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;group&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ github.workflow }}-${{ github.ref }}&lt;/span&gt;
  &lt;span class="property string"&gt;cancel-in-progress&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=boolean&gt;true&lt;/span&gt;

&lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;MISE_EXPERIMENTAL&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=boolean&gt;true&lt;/span&gt;

&lt;span class="property string"&gt;jobs&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;ci&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;runs-on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="property string"&gt;timeout-minutes&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=number&gt;10&lt;/span&gt;
    &lt;span class="property string"&gt;steps&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/checkout@v6&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;jdx/mise-action@v3&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;mise run ci&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But our goal isn’t to understand &lt;code&gt;yaml&lt;/code&gt; For doing CI, but to simplify the process of writing CI pipelines.&lt;br&gt;The goal is to simplify the process:&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ci&lt;/span&gt;

&lt;span class="property string"&gt;on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;push&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;workflow_dispatch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;pull&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;

&lt;span class="property string"&gt;permissions&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;contents&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;read&lt;/span&gt;
  &lt;span class="property string"&gt;pages&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;
  &lt;span class="property string"&gt;id-token&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;write&lt;/span&gt;

&lt;span class="property string"&gt;jobs&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;ci&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;runs-on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="property string"&gt;container&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
        &lt;span class="property string"&gt;image&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ghcr.io/jdx/mise:latest&lt;/span&gt;
    &lt;span class="property string"&gt;steps&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;checkout code&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/checkout@main&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Install dependencies &amp;amp; building&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="punctuation_delimiter string"&gt;|&lt;/span&gt;&lt;span class=string&gt;
            mise deps
            mise run fetch
            mise run build&lt;/span&gt;

        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;SOME_ENV&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.SOME_ENV }}&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Upload artifact&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/upload-pages-artifact@main&lt;/span&gt;
        &lt;span class="property string"&gt;with&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;path&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;./public&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Deploy to GitHub Pages&lt;/span&gt;
        &lt;span class="property string"&gt;id&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;deployment&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/deploy-pages@main&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The core pipeline structure remains constant think of it as a reliable boilerplate, so debates over tabs versus spaces become moot. You can concentrate on crafting your tasks while mise takes care of the underlying details.&lt;p&gt;Even better, the same setup runs seamlessly on any CI platform, delivering consistent, predictable results every time.&lt;p&gt;For a concrete example, see the sample workflow for Forgejo Actions.&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;CI&lt;/span&gt;

&lt;span class="property string"&gt;on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;push&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;pull_request&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;workflow_dispatch&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;

&lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;MISE_EXPERIMENTAL&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class=boolean&gt;true&lt;/span&gt;

&lt;span class="property string"&gt;jobs&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;check&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Check&lt;/span&gt;
    &lt;span class="property string"&gt;runs-on&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;codeberg-medium-lazy&lt;/span&gt;
    &lt;span class="property string"&gt;container&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class="property string"&gt;image&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ghcr.io/jdx/mise:latest&lt;/span&gt;

    &lt;span class="property string"&gt;steps&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;Check out source code&lt;/span&gt;
        &lt;span class="property string"&gt;uses&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;actions/checkout@v7.0.0&lt;/span&gt;

      &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="property string"&gt;name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;install dependencies&lt;/span&gt;
        &lt;span class="property string"&gt;run&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="punctuation_delimiter string"&gt;|&lt;/span&gt;&lt;span class=string&gt;
            mise deps
            mise run deploy&lt;/span&gt;
        &lt;span class="property string"&gt;env&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
          &lt;span class="property string"&gt;SOME_ENV&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;${{ secrets.SOME_ENV }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And the same for Git Lab Actions:&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class="property string"&gt;image&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;ghcr.io/jdx/mise:latest&lt;/span&gt;

&lt;span class="property string"&gt;stages&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;

&lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;build&lt;/span&gt;

&lt;span class="property string"&gt;build&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
  &lt;span class="property string"&gt;stage&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt; &lt;span class="boolean string"&gt;build&lt;/span&gt;
  &lt;span class="property string"&gt;script&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;:&lt;/span&gt;
    &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;mise deps&lt;/span&gt;
    &lt;span class=punctuation_delimiter&gt;-&lt;/span&gt; &lt;span class="boolean string"&gt;mise run deploy&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
</description>
          <link>https://www.pratyay.online/blog/1788377082/</link>
          <pubDate>Wed, 02 Sep 2026 19:24:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1788377082/</guid>
        </item>
      
    
      
        <item>
          <title>Using sops &amp; age to manage environment variables</title>
          <description>&lt;p&gt;Managing &lt;code&gt;.env&lt;/code&gt; Variables without a secret management workflow gets messy, especially if you work across many projects and repositories. Once values are scattered or committed by mistake, it becomes hard to remember which &lt;code&gt;.env&lt;/code&gt; Belongs to which project, even with a password manager.&lt;p&gt;I prefer keeping encrypted secrets close to the code. Algorithms like AES-256 and PGP are strong in theory (see &lt;a href=https://csrc.nist.gov/csrc/media/Events/2024/fifth-pqc-standardization-conference/documents/papers/on-practical-cost-of-grover.pdf target=_blank&gt;NIST’s discussion&lt;/a&gt;), but PGP is difficult for most people to use correctly in day-to-day workflows. If you cannot reliably decrypt your own files later, the setup is not practical.&lt;p&gt;Age is a simpler alternative. It uses modern cryptography, has manageable keys, and can work with existing credentials such as SSH keys. In this post, I use age with SOPS to encrypt secrets while keeping them in the repository.&lt;h2&gt;I am assuming that you are using some sort of *nix based operating system if not then at least use WSL(windows subsystem for Linux) to follow along&lt;/h2&gt;&lt;p&gt;In this guide, we will use Sops (Secret Operations) to manage and encrypt our secrets. Sops is a CNCF sandbox project; it originated as a Mozilla initiative before being donated to the open‑source community.&lt;p&gt;Sops can manage Yaml, Toml, dotenv, env.json.&lt;p&gt;But writing yaml files for configuration is something no one should be doing.&lt;p&gt;Why doing GitOPS the hard way, also by not committing environment variables you are not creating a reference so that others can collaborate on the project, SOPs is very selective at encryption it just encrypts the values not the keys.&lt;p&gt;Introducing &lt;a href=https://mise.jdx.dev/ target=_blank&gt;mise&lt;/a&gt; my go to tool for managing development utilities, automating tasks, and handling environment variables. While best practice advises against pinning to “latest,” I’ve chosen to do so for now.&lt;blockquote&gt;&lt;p&gt;💡 To generate a mise.toml run `mise gen config` and choose tools you need from the Tui (terminal user interface)&lt;/blockquote&gt;&lt;pre&gt;&lt;code class=yaml&gt;&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class=string&gt;tools&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;
&lt;span class=string&gt;age = "latest"
sops = "latest"

[env]
SOPS_AGE_RECIPIENTS = "{your age recipients here}, {yet another recipient}"
_ = { file = "{ path = .env }" }

[tasks]
encrypt = "sops -e -i .env &amp;amp;&amp;amp; mv .env .env.example"
decrypt = "mv .env.example .env &amp;amp;&amp;amp; sops -d -i .env"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is generally my overall workflow for secrets. The public key is safe to share.&lt;p&gt;Export an &lt;code&gt;.env&lt;/code&gt; Variable system wide generally from the dot &lt;code&gt;rc&lt;/code&gt; File like .bashrc, .zshrc etc&lt;pre&gt;&lt;code class=bash&gt;&lt;span class=keyword&gt;export&lt;/span&gt; &lt;span class=property&gt;SOPS_AGE_KEYS&lt;/span&gt;=&lt;span class=string&gt;"AGE_PRIVATE_KEY_HERE"&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;or, you can use&lt;pre&gt;&lt;code class=sh&gt;&lt;span class=keyword&gt;export&lt;/span&gt; &lt;span class=property&gt;SOPS_AGE_KEY_FILE&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;HOME&lt;/span&gt;&lt;span class=string&gt;/.sops/age/keys.txt"&lt;/span&gt;
&lt;span class="constant function"&gt;or&lt;/span&gt; 
&lt;span class=keyword&gt;export&lt;/span&gt; &lt;span class=property&gt;SOPS_AGE_KEY_FILE&lt;/span&gt;=&lt;span class=string&gt;"&lt;/span&gt;&lt;span class="operator string"&gt;$&lt;/span&gt;&lt;span class="property string"&gt;HOME&lt;/span&gt;&lt;span class=string&gt;/.config/sops/age/keys.txt"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Keep the contents of keys.txt safe in some password manager only .&lt;p&gt;AGE supports YubiKey, ssh-agent as a helpers too.&lt;/p&gt;&lt;a href=https://asciinema.org/a/1130380 title=asciicast&gt;&lt;img src=https://asciinema.org/a/1130380.svg alt=asciicast&gt;&lt;/a&gt;
&lt;p&gt;This is the workflow with sops configuration.&lt;/p&gt;&lt;a href=https://asciinema.org/a/1264339 title=asciicast&gt;&lt;img src=https://asciinema.org/a/1264339.svg alt=asciicast&gt;&lt;/a&gt;
&lt;p&gt;Using mise makes the process straightforward. Once this is set up, you can keep encrypted secrets in the repository and decrypt them when needed.</description>
          <link>https://www.pratyay.online/blog/1788197745/</link>
          <pubDate>Mon, 31 Aug 2026 17:35:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/1788197745/</guid>
        </item>
      
    
      
        <item>
          <title>QCADesigner-E is now available on appimagehub</title>
          <description>&lt;h2&gt;QCADesigner-E appimage&lt;/h2&gt;&lt;p&gt;QCADesigner-E is an extension of &lt;strong&gt;QCADesigner 2.0.3&lt;/strong&gt;, developed at the University of Bremen. It adds power dissipation estimation for &lt;strong&gt;Quantum-dot Cellular Automata (QCA)&lt;/strong&gt; Circuits, based on the theoretical work of Timler, Lent, and others. The extension was presented in &lt;a href=https://doi.org/10.1109/TCAD.2018.2789782 target=_blank&gt;2&lt;/a&gt;.&lt;p&gt;The power estimation functionality is integrated as an additional simulation module based on the &lt;strong&gt;Coherence Vector Simulation Engine (CVSE)&lt;/strong&gt;. QCADesigner-E remains fully compatible with QCA designs created using QCADesigner 2.0.3.&lt;p&gt;QCADesigner is widely used by researchers working on QCA architectures for designing, simulating, and verifying cellular automata circuits. Its standardized environment makes it possible to model QCA logic gates and interconnects while performing timing analysis. QCADesigner-E extends this workflow by allowing researchers to estimate power dissipation and evaluate the energy characteristics of their designs.&lt;h3&gt;Linux AppImage&lt;/h3&gt;&lt;p&gt;I have repackaged QCADesigner-E as an AppImage, making it possible to run the application on a wide range of Linux distributions and modern systems without requiring users to manually install dependencies or build the software from source.&lt;p&gt;The resulting AppImage is portable and distribution-independent, providing a straightforward way to run QCADesigner-E on modern Linux systems.&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/CdHy7k1/Screenshot-20260928-002154-png.png&gt;
&lt;figcaption&gt;appimagehub&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/6c74w09k/download-appimage-banner-svg.jpg&gt;
&lt;figcaption&gt;https://appimage.github.io/QCADesigner-E/&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://i.ibb.co/Gvrw30yb/Screenshot-2026-09-28-at-02-05-51-QCADesigner-E-App-Images-png.png&gt;
&lt;figcaption&gt;screenshot&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;a href=https://appimage.github.io/QCADesigner-E/ target=_blank&gt;https://appimage.github.io/QCADesigner-E/&lt;/a&gt;&lt;p&gt;&lt;a href=https://portable-linux-apps.github.io/en/app/qcadesigner-e.html target=_blank&gt;https://portable-linux-apps.github.io/en/app/qcadesigner-e.html&lt;/a&gt;&lt;p&gt;Thanks to the original authors of the application &lt;a href=http://fsillt.github.io/QCADesigner-E target=_blank&gt;fsillt.github.io/QCADesigner-E&lt;/a&gt;&lt;p&gt;cross post: &lt;a href=https://pratyay360.github.io/qcadesigner-qca-simulator-power-estimation-linux/ target=_blank&gt;https://pratyay360.github.io/qcadesigner-qca-simulator-power-estimation-linux/&lt;/a&gt;</description>
          <link>https://www.pratyay.online/notes/1787483406/</link>
          <pubDate>Sun, 23 Aug 2026 11:10:00 +0000</pubDate>
          <guid>https://www.pratyay.online/notes/1787483406/</guid>
        </item>
      
    
      
        <item>
          <title>Hello World, my first post</title>
          <description>&lt;p&gt;This is my small corner in the internet will be sharing ideas and thoughts maybe no one will be reading this but who cares. If only me and google spider reads this that’s perfectly fine. I will be writing stuff here sharing my views, opinions, and experience I gathered over the years.&lt;p&gt;From the very early age computers, electronics and internet excited me a lot.&lt;p&gt;Btw I am a Linux user for the past 5 6 years, so I can claim that I have learned&lt;br&gt;A little bit about UNIX and Linux, and I think I am self entitled to share some of my experiences here Btw, now days I boot an atomic/immutable Bootc based distro&lt;br&gt;(which is heavily customized by me)&lt;p&gt;Most of the stuff I do is just to explore. Not afraid of trying anything new or unknown I am still equally open and curious about learning new things.&lt;p&gt;By the way, I had a childhood dream of becoming a lawyer because I tend to defend any side in any debate &lt;del&gt;Though that usually stays within my social bubble.&lt;/del&gt; However, with age I have realized that I am too introverted for that profession.&lt;p&gt;I have got some hot takes too, but won’t be sharing everything in one post.&lt;h2&gt;So, see you later dear anon&lt;/h2&gt;</description>
          <link>https://www.pratyay.online/blog/firstpost/</link>
          <pubDate>Sat, 22 Aug 2026 21:13:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/firstpost/</guid>
        </item>
      
    
      
    
      
    
      
    
      
        <item>
          <title>About</title>
          <description>&lt;p&gt;Pratyay Mustafi A passionate</description>
          <link>https://www.pratyay.online/about/</link>
          <pubDate>Thu, 01 Jan 2026 00:00:00 +0000</pubDate>
          <guid>https://www.pratyay.online/about/</guid>
        </item>
      
    
      
    
      
        <item>
          <title>My adventures with tinkering with linux so far.</title>
          <description>&lt;h2&gt;Beginning story&lt;/h2&gt;&lt;p&gt;During the COVID lockdown, my school was closed and I spent a lot of time watching YouTube on my Windows desktop. One day I came across a video about Linux and riced desktop setups. I liked how minimal and polished they looked, so I decided to try Linux on my own machine.&lt;p&gt;I was not fully confident yet, so I started with Ubuntu. I downloaded the ISO and tried it in VirtualBox by following tutorials. At the time, most of the software I used was pirated proprietary software like Photoshop and Microsoft Office, so I also needed to find alternatives. I knew being comfortable with the terminal mattered in case I broke something and needed to fix it with a search.&lt;p&gt;I installed Ubuntu WSL on my Windows machine and started learning basic Unix commands. I loved spending time in the terminal and VS Code. After using WSL for about a month and a half and running Ubuntu in VirtualBox, I wanted to use Linux more seriously. My desktop did not have much RAM, so the VirtualBox experience was not great.&lt;p&gt;&lt;figure&gt;&lt;img src=https://upload.wikimedia.org/wikipedia/commons/2/27/Ubuntu_on_Windows_10_-_bash.png&gt;
&lt;figcaption&gt;Windows Subsystem for Linux - Wikipedia&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;(This is a visual representation of WSL Obviously copied from internet not mine as I don’t use windows any more)&lt;h3&gt;Installing Linux alongside Windows&lt;/h3&gt;&lt;p&gt;After spending about one to one‑and‑a‑half months experimenting with Linux via WSL, I discovered that VirtualBox performed poorly because of my limited RAM. I decided to set up a dual boot system with Linux and Windows. As a beginner, installing even a simple operating system was a challenge. I deleted a Windows partition and installed Ubuntu in that space, which was on my HDD rather than the SSD, so I had to switch operating systems manually through the BIOS. Despite running from the HDD, Ubuntu felt noticeably faster than Windows 10. I began tinkering with Linux, eventually spending roughly two‑thirds of my computer time in Ubuntu and using Windows only for gaming. Confident in my Linux skills, I later moved Ubuntu permanently to the SSD and reformatted the HDD from NTFS to ext4. From that point on, I considered myself a true Linux user.&lt;p&gt;&lt;figure&gt;&lt;img src=https://res.cloudinary.com/canonical/image/fetch/f_auto,q_auto,fl_sanitize,c_fill,w_3840,h_2160/https://ubuntu.com/wp-content/uploads/d944/yaru-screenshot-large.jpg&gt;
&lt;figcaption&gt;Ubuntu Desktop&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;(Representation of Ubuntu desktop)&lt;h3&gt;Distro Hopping&lt;/h3&gt;&lt;p&gt;After installing Linux permanently on my desktop there was no looking back terminal was great, I have found suitable Foss or web based alternatives to whatever I used to do. Installing/ uninstalling apps was easier than ever and after installing Linux I started following multiple Foss advocates and linux channels on YouTube. Ricing desktop changing themes customizing is what I used to do all day. But sadly there isn’t enough option for customization on Gnome.&lt;p&gt;I began exploring various Linux distributions—Elementary OS, Manjaro, Endeavour OS, Fedora, and others. Some I loved, some didn’t suit my hardware due to driver issues, and a few I may have unintentionally broken. As a beginner, Pop!\ OS was my favorite; its Ubuntu base and the polished Cosmic desktop made a great first impression.&lt;p&gt;After hopping between distros, I realized that the window manager and desktop environment, rather than the distribution itself, drive the user experience. After about four to five months with Pop!\ OS, I switched to Manjaro KDE. It was my first encounter with KDE Plasma, and I was instantly impressed by its limitless customization options. Compared with GNOME, KDE consumes far fewer resources, and I quickly grew to love KRunner an intuitive launcher reminiscent of macOS’s Spotlight.&lt;p&gt;I proudly showed my customized desktop to friends, following tweaks inspired by the “Linux Experiment” YouTube channel. Thanks to Manjaro, I was also introduced to the Arch User Repository (AUR), a collection of build scripts that let anyone install applications natively with minimal effort   without relying on sandboxed solutions like Flatpak or Snap.&lt;h3&gt;Ditching Manjaro&lt;/h3&gt;&lt;p&gt;I initially experienced broken applications and even a compromised OS because Manjaro holds Arch packages for testing, which interfered with AUR installed software. After leaving Manjaro, I tried Garuda Linux’s KDE Plasma edition. While the visual polish and tailored animations were impressive, the distribution proved to resource intensive for my hardware, leading to performance issues. Consequently, I switched to EndeavourOS. The EndeavourOS community on Telegram has been exceptionally helpful and active; they have resolved numerous problems I raised, often multiple times.&lt;p&gt;Although the Linux community is sometimes perceived as unfriendly, my experience with EndeavourOS has been the opposite. After adopting it, my distro‑hopping days came to an end. I have now been using EndeavourOS continuously for two to three years and have finally found a stable, satisfying environment.&lt;h3&gt;Exploring CyberSecurity&lt;/h3&gt;&lt;p&gt;I spent the lockdown watching numerous movies and web series, and the &lt;a href=https://www.imdb.com/title/tt4158110/ target=_blank&gt;show Robot&lt;/a&gt; Sparked my interest in cybersecurity. After viewing HackerSploit’s YouTube videos, I began exploring the field, but most of the content focused on theory rather than hands‑on practice. To fill that gap, I turned to Udemy and Telegram for more practical tutorials.&lt;p&gt;I set up Kali Linux and Parrot OS on my desktop using VirtualBox and started experimenting with real world scenarios, such as Wi‑Fi password cracking and exploiting outdated WordPress installations. This hands‑on experience has deepened my understanding and fueled my enthusiasm for a career in cybersecurity.&lt;p&gt;&lt;figure&gt;&lt;img src=https://www.kali.org/images/kali-desktop-gnome.jpg&gt;
&lt;figcaption&gt;Kali Linux | Penetration Testing and Ethical Hacking Linux&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;(visual representation of Kali-Linux desktop)&lt;h3&gt;Current Os&lt;/h3&gt;&lt;p&gt;I recently purchased a high‑performance HP laptop with a powerful processor and initially installed EndeavourOS. The system performed well until I upgraded to kernel 5.8, after which Bluetooth audio began to stutter and the 5 GHz Wi‑Fi connection became unreliable—likely due to driver issues. Consequently, I switched to the distribution favored by Linus Torvalds himself: Fedora.&lt;p&gt;After years of using Arch‑based distributions, I realized they were not sufficiently stable for my primary workstation. I now run the KDE Plasma spin of Fedora, and after six months the experience has been excellent. The rolling‑release model, combined with reliable Flatpak updates, meets all my needs. I have stopped hopping between distributions and finally found my sweet spot.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1734346269192/a55b5cc6-2c0c-4204-9b61-463f54161f71.png&gt;
&lt;figcaption&gt;fastfetch&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;(Fast Fetch of my personal laptop)&lt;h4&gt;&lt;strong&gt;Freedom&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;One of the biggest reasons I fell in love with Linux is the sense of &lt;strong&gt;freedom&lt;/strong&gt; it offers.&lt;br&gt;Unlike proprietary operating systems like Windows or macOS, Linux doesn’t limit you to a particular way of doing things. You’re free to:&lt;ul&gt;&lt;li&gt;Choose from hundreds of distributions that suit your needs, whether it’s a beginner-friendly distro like Ubuntu or a cutting-edge rolling release like Arch Linux.&lt;li&gt;Customize your system to work the way you want, from changing the desktop environment to tweaking even the smallest settings.&lt;li&gt;Use your computer without worrying about invasive tracking or forced updates.&lt;br&gt;This freedom extends to how you use your hardware as well. Linux runs smoothly even on older machines, letting you breathe new life into aging systems. For someone like me, who loves tinkering and optimizing, this level of control felt liberating.&lt;/ul&gt;&lt;h4&gt;&lt;strong&gt;Customization&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;The &lt;strong&gt;customization&lt;/strong&gt; Capabilities of Linux are what initially drew me in, and they are what kept me hooked. With Linux, you’re not stuck with a standard, unchangeable interface. Instead, you can:&lt;ul&gt;&lt;li&gt;Switch between desktop environments like GNOME, KDE Plasma, or XFCE, depending on your preferences.&lt;li&gt;“Rice” your desktop to create stunning and minimalist designs, tailoring everything from the color schemes to the window manager.&lt;li&gt;Modify the terminal to look and behave exactly how you want, using themes, plugins, and tools like Zsh or Oh My Zsh.&lt;br&gt;For me, experimenting with different configurations felt like a creative outlet. The ability to design a workspace that was both visually pleasing and incredibly functional was empowering. Unlike closed systems, Linux encouraged me to make my computer an extension of my personality.&lt;/ul&gt;&lt;h4&gt;Open Source Philosophy&lt;/h4&gt;&lt;p&gt;At the heart of Linux is its open-source philosophy, which fundamentally changed the way I view technology. Open-source software is not just about using free tools. It is about being part of a community where collaboration and transparency take precedence.&lt;ul&gt;&lt;li&gt;With Linux, I realized I wasn’t just a passive consumer; I was part of a larger movement that values sharing knowledge and empowering others.&lt;li&gt;I could access the source code of the operating system and understand how it worked.&lt;li&gt;While I wasn’t skilled enough to contribute back then, knowing that I could learn from it or even modify it if needed was inspiring.&lt;li&gt;Most of the apps I used were open-source, from LibreOffice to GIMP, which helped me move away from pirated proprietary software. The open-source philosophy also made me appreciate how Linux thrives because of its community. Whether it was asking for help on forums, following FOSS advocates on YouTube, or contributing bug reports, I felt like I was part of something bigger.&lt;/ul&gt;&lt;h3&gt;Ostree&lt;/h3&gt;&lt;p&gt;Atomic/immutable distros like kinoite, bazzite are my new preference. Have started with Ublue’s aurora and have loved immutable distributions. So installed kinoite on my laptop and have been using it for past 6 7 months. And it feels so complete as a distro and the way it handles updates and rollbacks is just amazing. I have rebased from kinoite base to my own &lt;a href=https://github.com/Pratyay360/blueee-os target=_blank&gt;recipe&lt;/a&gt;. Images are available at &lt;a href=https://quay.io/organization/pratyay360 target=_blank&gt;quay.io&lt;/a&gt;&lt;h3&gt;&lt;a href=https://containertoolbx.org/ target=_blank&gt;&lt;strong&gt;Toolbox Containers&lt;/strong&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Toolbox containers are a special type of container in which the user’s     &lt;code&gt;$HOME&lt;/code&gt; Directory is shared between the container and the host. This is particularly advantageous when testing new or untrusted applications in an isolated environment. In fact, even trusted applications that don’t necessarily need access to the host’s &lt;code&gt;/usr/bin&lt;/code&gt; can be installed and run inside Toolbox.&lt;p&gt;Toolbox containers also share the host’s sockets like, SSH agent and the host’s authentication mechanisms. Since the     &lt;code&gt;$HOME&lt;/code&gt; Directory is shared, user configurations, themes, and other personal customization are seamlessly integrated, providing a consistent experience across the host and container.&lt;p&gt;I’ve often seen people recommend using Flatpak for GUI applications and Toolbox for command-line tools. However, Toolbox containers are perfectly capable of running GUI applications too. I’ve been installing and running GUI apps directly inside toolbox containers, I have been using Toolbox for some time now, and, honestly, I have not observed any significant difference in the overall experience. In fact, I even install all of my web browsers inside Toolbox containers.&lt;p&gt;Unlike Flatpak where users are limited to specific number of &lt;a href=https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/wikis/Freedesktop-SDK-Flatpak-repository target=_blank&gt;free desktop&lt;/a&gt; Run times, Users can use any in the case of toolbox, also the command &lt;code&gt;flatpak-spawn&lt;/code&gt; Available inside toolbox containers though it’s just a shell script, &lt;a href=https://github.com/Pratyay360/toolbox-export target=_blank&gt;I have even built a cli tool to accompany me while using toolbox containers.&lt;/a&gt;&lt;h4&gt;Conclusion&lt;/h4&gt;&lt;p&gt;Switching to Linux taught me more than just technical skills it gave me a new perspective&lt;br&gt;On freedom, creativity, and community. The ability to customize my system,&lt;br&gt;Use free and open-source software, and break away from proprietary restrictions&lt;br&gt;Made my journey rewarding. Linux isn’t just an operating system; it’s a way to&lt;br&gt;Embrace technology with curiosity and empowerment.&lt;h3&gt;Continuation&lt;/h3&gt;&lt;p&gt;Using Linux or a Unix-like system is a continuous journey of discovery and learning. I will update this post as my workflow evolves.</description>
          <link>https://www.pratyay.online/blog/16december2024/</link>
          <pubDate>Mon, 16 Dec 2024 14:55:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/16december2024/</guid>
        </item>
      
    
      
        <item>
          <title>Deploying nextjs app on cloudflare pages</title>
          <description>&lt;p&gt;Cloudflare Pages is a strong alternative to serverless platforms like Vercel or Netlify. Cloudflare Pages offers a generous free tier with unlimited bandwidth and requests, while other platforms set lower limits (for example, Vercel’s free tier has bandwidth limits and commercial-use restrictions).&lt;p&gt;You can compare the pricing of &lt;a href=https://vercel.com/pricing target=_blank&gt;Vercel&lt;/a&gt;, &lt;a href=https://www.netlify.com/pricing target=_blank&gt;Netlify&lt;/a&gt;, and &lt;a href=https://www.cloudflare.com/en-in/plans/developer-platform/ target=_blank&gt;Cloudflare Pages&lt;/a&gt;.&lt;p&gt;Cloudflare Pages does not support server-side rendering (SSR) in the same way Vercel does. Pages are statically rendered or served from the edge, which is the main trade-off. For many side projects and content-heavy apps, unlimited bandwidth and requests on the free tier can be more practical than paying for SSR and platform-specific optimizations.&lt;p&gt;Now let’s see how to use Cloudflare pages along with NEXT.JS,&lt;h2&gt;Create a &lt;a href=https://nextjs.org/docs target=_blank&gt;next&lt;/a&gt; project with&lt;/h2&gt;&lt;p&gt;&lt;code&gt;npx create-next-app@latest&lt;/code&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707913117934/664bb591-d118-4194-a2a3-ceace1a04c56.png&gt;
&lt;figcaption&gt;Terminal Next&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;upload project to &lt;a href=https://github.com/Pratyay360/test-app target=_blank&gt;GitHub&lt;/a&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707913665642/98789bc9-d8ff-4a84-8a5a-5e3d8f92fc2b.png&gt;
&lt;figcaption&gt;github page&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Open &lt;a href=https://www.cloudflare.com/ target=_blank&gt;Cloudflare homepage&lt;/a&gt; Login and in dashboard go to workers and pages&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707913912594/7f2ec47c-58cb-4eab-8f87-22388289dcfb.png&gt;
&lt;figcaption&gt;cloudflare dashoard&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;click on create application&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707914039120/52ed78aa-17a3-4d47-9a78-2abfd5e0d252.png&gt;
&lt;figcaption&gt;workers and pages&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Click on pages and on connect to git&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707914223044/0cd32b05-f5fc-496f-82ba-431edd6e8194.png&gt;
&lt;figcaption&gt;create application&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Link your git repository and begin setup and choose Next.Js in the framework section&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707914357980/be577f2e-5a2f-4c29-b6c2-7b498e1cb9e5.png&gt;
&lt;figcaption&gt;deploy options&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;leave everything as it is if you are not using environment variables. If you are using environment variables then click on the option and add your environment variables.&lt;p&gt;Hit the &lt;code&gt;Save and Deploy&lt;/code&gt; button.&lt;p&gt;There will be a error while opening the generated site like&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707914929214/73c90bb4-8ed5-4d77-8646-7c48a387cc35.png&gt;
&lt;figcaption&gt;Flag error&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;you have to copy the flag &lt;code&gt;nodejs_compat&lt;/code&gt; and go to settings of the deployment and open functions window in it.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707915246626/ba8527d6-4eef-48fa-a3c0-32b3f6877fa6.png&gt;
&lt;figcaption&gt;settings&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;In functions window there is an option to add compatibility flags add the copied text in both Production and Preview Options.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707915352071/1ef9d53d-a0c4-4cc8-97f5-a0addf38bd30.png&gt;
&lt;figcaption&gt;flags&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Also change the Compatibility date to the nearest one (if not configured automatically)&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707915435201/e5f8a643-8c37-46ac-ac5a-4a25c5b38423.png&gt;
&lt;figcaption&gt;compatibility date&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;After Doing everything thoroughly you have to redeploy the app by clicking on retry deployment.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707915677923/cc8eca20-0e03-42e3-849e-c04d975cf3d7.png&gt;
&lt;figcaption&gt;retry deployment&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;After doing all the steps correctly the Next.Js app will be deployed in &lt;a href=https://test-app-kjx.pages.dev/ target=_blank&gt;Cloudflare Pages&lt;/a&gt;&lt;h3&gt;Result&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1707916073390/77824d3d-b306-42f4-962c-6ef9474431ce.png&gt;
&lt;figcaption&gt;result&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;If you run into issues during deployment, check the Functions compatibility flags and retry the deployment after saving changes.</description>
          <link>https://www.pratyay.online/blog/14thfeb2024/</link>
          <pubDate>Wed, 14 Feb 2024 14:55:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/14thfeb2024/</guid>
        </item>
      
    
      
        <item>
          <title>Using Google Sheets as a Database</title>
          <description>&lt;h2&gt;How to Use Google Sheets as a Database: A Complete Guide&lt;/h2&gt;&lt;h3&gt;Introduction :-&lt;/h3&gt;&lt;p&gt;Now you can use Google Sheets as a basic database to make your project work and prototype your project using google’s inbuilt free api &lt;code&gt;Apps Script&lt;/code&gt;.&lt;p&gt;Google’s spreadsheet can store text, number etc. and you can receive data in&lt;br&gt;Json format and use in your project in this blog I am going to show you how to&lt;br&gt;Store collected from customized form. One can follow this code with moderate level&lt;br&gt;Of coding knowledge in JavaScript / React js.&lt;h3&gt;1st step to start the project is to create a spreadsheet in Google Sheet&lt;/h3&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703787617966/09e8bb0a-a45e-4261-bf24-12222b6cc0b2.png&gt;
&lt;figcaption&gt;sheet home page&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Click on the &lt;code&gt;+&lt;/code&gt; icon and rename the spreadsheet name.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703787737106/6104c007-db83-4c1e-b2dd-3dbc78fc89d1.png&gt;
&lt;figcaption&gt;sheet title&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;here I am naming the sheet as &lt;code&gt;form data&lt;/code&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703787784897/59028129-8462-4a6e-b584-38a44bd35a9a.png&gt;
&lt;figcaption&gt;column name&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;I am creating 3 columns &lt;code&gt;Name&lt;/code&gt; , &lt;code&gt;Email&lt;/code&gt; and &lt;code&gt;Message&lt;/code&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703787893999/b51df5a2-263f-4c86-abf9-ade9946e0163.png&gt;
&lt;figcaption&gt;sheet_id&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;I have given my sheet name as &lt;code&gt;data&lt;/code&gt;&lt;p&gt;Now to generate a restful api for the given sheet we have to click on Extensions -&amp;gt; Apps Script&lt;p&gt;If you are following me step by step then your sheet should be like&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703788242840/8a4b4aee-e6e8-4838-9d8d-f09da611a82d.png&gt;
&lt;figcaption&gt;spread sheet&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;After opening &lt;strong&gt;Apps Script&lt;/strong&gt; you should change the code with&lt;pre&gt;&lt;code class=javascript&gt;&lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;sheets&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;SpreadsheetApp&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;openByUrl&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"&amp;lt;Enter Spreadsheet url&amp;gt;"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;like&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=comment&gt;// const sheets = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/1RJNF_42I9p3MTBPBM8aEVe0ZWLRzccojNNoKxGT7EHw/edit#gid=0");&lt;/span&gt;
&lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;sheet&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;sheets&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;getSheetByName&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"data"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;doPost&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;e&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
  &lt;span class=keyword&gt;let&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;data&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;e&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;parameter&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
  &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;sheet&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;appendRow&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;data&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;Name&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;data&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;Email&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;data&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;Message&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
  &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;ContentService&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;createTextOutput&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"Message Sent!"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now click on deploy&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703788395644/95fb98d0-01b9-4c7a-a167-88a548939f71.png&gt;
&lt;figcaption&gt;apps script page&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;New Deployment -&amp;gt; Select Type (Web App) -&amp;gt; Then click Deploy&lt;p&gt;Make Sure to change access to anyone.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703788564454/28688698-170f-4296-8a95-da97e4fe89cf.png&gt;
&lt;figcaption&gt;deploy page&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;Don’t forget to copy the web app link We will be using it as the&lt;/strong&gt;&lt;code&gt;api&lt;/code&gt;&lt;strong&gt;Now open your html project and add use the following syntax&lt;/strong&gt;&lt;pre&gt;&lt;code class=javascript&gt;&lt;span class=string&gt;"use client"&lt;/span&gt;
&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;React&lt;/span&gt; &lt;span class=keyword&gt;from&lt;/span&gt; &lt;span class=string&gt;"react"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;hydrateRoot&lt;/span&gt; &lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class=keyword&gt;from&lt;/span&gt; &lt;span class=string&gt;'react-dom/client'&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;useEffect&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;useState&lt;/span&gt; &lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class=keyword&gt;from&lt;/span&gt; &lt;span class=string&gt;'react'&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;FormEvent&lt;/span&gt; &lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class=keyword&gt;from&lt;/span&gt; &lt;span class=string&gt;'react'&lt;/span&gt;
&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;buildCustomRoute&lt;/span&gt; &lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class=keyword&gt;from&lt;/span&gt; &lt;span class=string&gt;"next/dist/build"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=keyword&gt;export&lt;/span&gt; &lt;span class=keyword&gt;default&lt;/span&gt; &lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;Home&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
    &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;isClient&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;setIsClient&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;useState&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=constant_builtin&gt;false&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
    &lt;span class=keyword&gt;async&lt;/span&gt; &lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;Submit&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;e&lt;/span&gt;: &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;FormEvent&lt;/span&gt;&lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;HTMLFormElement&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
        &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;e&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;preventDefault&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
        &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;formData&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=keyword&gt;new&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;FormData&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;e&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;currentTarget&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
        &lt;span class=keyword&gt;if&lt;/span&gt; &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=operator&gt;!&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;formData&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;get&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"Name"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;||&lt;/span&gt; &lt;span class=operator&gt;!&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;formData&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;get&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"Email"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;||&lt;/span&gt; &lt;span class=operator&gt;!&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;formData&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;get&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"Message"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
            &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;alert&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"Please fill all the fields"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
            &lt;span class=keyword&gt;return&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
        &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
        &lt;span class=keyword&gt;else&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
            &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;res&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=keyword&gt;await&lt;/span&gt; &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;fetch&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
                &lt;span class=comment&gt;// Enter your link here&lt;/span&gt;
                &lt;span class=string&gt;"https://script.google.com/macros/s/S2$e@vgjgK5hpeS%6C7PS^LDJ8^6J9nV3nW7%ysPsPADhwYaA!kQMngE*EP%SZD*SbS3^g/exec"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt;
                &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
                    &lt;span class=property&gt;method&lt;/span&gt;: &lt;span class=string&gt;"POST"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt;
                    &lt;span class=property&gt;body&lt;/span&gt;: &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;formData&lt;/span&gt;
                &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;
                &lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;then&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;response&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;=&amp;gt;&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
                    &lt;span class=keyword&gt;if&lt;/span&gt; &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;response&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;status&lt;/span&gt; &lt;span class=operator&gt;===&lt;/span&gt; &lt;span class=number&gt;200&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
                        &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;formElement&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;document&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;getElementById&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"form"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;as&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;HTMLFormElement&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
                        &lt;span class=keyword&gt;if&lt;/span&gt; &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;formElement&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
                            &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;formElement&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;reset&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
                        &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                    &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                    &lt;span class=keyword&gt;else&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
                        &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;alert&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"Something went wrong"&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
                    &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;
                &lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;catch&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;error&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;=&amp;gt;&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
                    &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;console&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;error&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"Error:"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin variable variable_builtin"&gt;error&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
                &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
        &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
    &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
    &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;useEffect&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;=&amp;gt;&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
        &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;setIsClient&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=constant_builtin&gt;true&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
    &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

    &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
        &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
            &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;h1&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"text-center items-center justify-center p-5 mt-7 top-36 tracking-[20px] text-gray-500 text-2xl lg:text-4xl font-bold"&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;Message Me&amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;h1&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
            &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;section&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"text-gray-300 body-font"&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;div&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"container px-5 py-24 mx-auto"&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;div&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"flex flex-wrap -m-10 justify-center whitespace-break-spaces"&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=comment&gt;/* Form Start Here  */&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                        &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;isClient&lt;/span&gt; ? &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
                            &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;form&lt;/span&gt; &lt;span class=property&gt;id&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"form"&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"flex flex-col space-y-5"&lt;/span&gt; &lt;span class=property&gt;onSubmit&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;e&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;=&amp;gt;&lt;/span&gt; &lt;span class="constant constructor function function_builtin variable variable_builtin"&gt;Submit&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;e&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;label&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"font-bold text-lg text-white "&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt;Name&amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;label&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;input&lt;/span&gt; &lt;span class=property&gt;type&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"text"&lt;/span&gt; &lt;span class=property&gt;name&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"Name"&lt;/span&gt; &lt;span class=property&gt;placeholder&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"Enter Name"&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"border rounded-lg py-3 px-3 mt-2 bg-black border-indigo-600 placeholder-white-500 text-white"&lt;/span&gt; /&amp;gt;
                                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;label&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"font-bold text-lg text-white"&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;Email&amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;label&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;input&lt;/span&gt; &lt;span class=property&gt;type&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"email"&lt;/span&gt; &lt;span class=property&gt;name&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"Email"&lt;/span&gt; &lt;span class=property&gt;id&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"email"&lt;/span&gt; &lt;span class=property&gt;placeholder&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"example@email.com"&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"border rounded-lg py-3 px-3 mt-2 bg-black border-indigo-600 placeholder-white-500 text-white"&lt;/span&gt; /&amp;gt;
                                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;label&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"font-bold text-lg text-white "&lt;/span&gt; &lt;span class=operator&gt;&amp;gt;&lt;/span&gt;Message&amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;label&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;input&lt;/span&gt; &lt;span class=property&gt;type&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"text"&lt;/span&gt; &lt;span class=property&gt;name&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"Message"&lt;/span&gt; &lt;span class=property&gt;placeholder&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"Enter Your Message"&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"border rounded-lg py-3 px-3 mt-2 bg-black border-indigo-600 placeholder-white-500 text-white"&lt;/span&gt; /&amp;gt;
                                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;button&lt;/span&gt; &lt;span class=property&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"border border-indigo-600 hover:bg-indigo-600 bg-black text-white rounded-lg py-3 )font-semibold px-2"&lt;/span&gt; &lt;span class=property&gt;type&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"submit"&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;Send Message&amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;button&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                            &amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;form&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; :
                            &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
                                &lt;span class=operator&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;p&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;Form not working properly Please report to pratyaymustafi@outlook.com&amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;p&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                            &lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                        &amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=comment&gt;/* Form End */&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                    &amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
                &amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
            &amp;lt;/&lt;span class="constant constructor function_builtin variable variable_builtin"&gt;section&lt;/span&gt;&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;

        &amp;lt;/&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Here I am using next.js you can use the same code with react&lt;/h4&gt;&lt;p&gt;Here is the output of the code&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703788879735/dde905f9-ec9b-4a55-9ee7-4e58c23a1de9.png&gt;
&lt;figcaption&gt;message me page blank&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Here I am sending a dummy message just as an example&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703789035408/6884dd91-c5c8-4e5f-a9a7-07bf23c007bf.png&gt;
&lt;figcaption&gt;message me page filled&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;As you can see the in the form is inserted into the spread sheet.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1703789052417/37c78462-af4d-48c7-8f71-2ef445f49002.png&gt;
&lt;figcaption&gt;recieved response&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;h3&gt;Cons of using spreadsheet as database&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Increased Dependency on google’s api&lt;li&gt;Less Scalability&lt;li&gt;Not so professional as it’s no so safe to store users data in just a spreadsheet.&lt;/ul&gt;&lt;h3&gt;Pros&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Easy prototyping&lt;li&gt;Can be used to make customized survey form&lt;li&gt;Cost Effective&lt;/ul&gt;&lt;p&gt;Have used codes of &lt;a href="https://www.youtube.com/watch?v=ZA6j2PhXSUg" target=_blank&gt;Anatu Tech&lt;/a&gt; partly here.&lt;p&gt;If you adapt this for your own form, replace the Apps Script URL and column names to match your sheet.</description>
          <link>https://www.pratyay.online/blog/december-29-2023/</link>
          <pubDate>Fri, 29 Dec 2023 14:55:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/december-29-2023/</guid>
        </item>
      
    
      
        <item>
          <title>A Guide to Using Hashnode API 2.0 for Showcasing Blogs on Your Website</title>
          <description>&lt;blockquote&gt;&lt;p&gt;🤖 Update: This post revisits my earlier guide on embedding Hashnode blogs into your personal website, which originally relied on Hashnode’s legacy API.&lt;blockquote&gt;&lt;p&gt;Hashnode is retiring the old API 1.0 and transitioning to the new GraphQL‑based API 2.0.&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;In this blog, I am going to show how to fetch blogs from Hashnode’s public API 2.0. You can create cards and showcase blogs written by you on your personal portfolio website.&lt;h2&gt;Why Use Hashnode API 2.0?&lt;/h2&gt;&lt;p&gt;Hashnode API 1.0, or their &lt;a href=https://api.hashnode.com/ target=_blank&gt;legacy API&lt;/a&gt;, has been deprecated. Hashnode has released its new &lt;a href=https://gql.hashnode.com/ target=_blank&gt;API 2.0&lt;/a&gt;.&lt;h3&gt;How to Query and Generate JSON Using API 2.0&lt;/h3&gt;&lt;p&gt;To query Hashnode’s API 2.0, follow the official &lt;a href=https://apidocs.hashnode.com/ target=_blank&gt;API documentation&lt;/a&gt;.&lt;p&gt;In this example, we use React hooks such as &lt;code&gt;useState&lt;/code&gt; and &lt;code&gt;useEffect&lt;/code&gt; To manage state and fetch data from the API.&lt;h3&gt;Example&lt;/h3&gt;&lt;h4&gt;Methodology&lt;/h4&gt;&lt;p&gt;I am going to use Next.js and query the cover image, title, brief content, and blog URL for my blog (archived)&lt;p&gt;You can query a maximum of 20 blogs using Hashnode’s new API.&lt;p&gt;Hashnode allows us to query blog data in JSON format using &lt;a href=https://gql.hashnode.com target=_blank&gt;https://gql.hashnode.com&lt;/a&gt;, which supports GraphQL queries. Here is a sample query:&lt;pre&gt;&lt;code class=c&gt;&lt;span class=type&gt;query&lt;/span&gt; &lt;span class="constant variable"&gt;Publication&lt;/span&gt; {
  &lt;span class=label&gt;publication&lt;/span&gt;(&lt;span class=type&gt;host&lt;/span&gt;: &lt;span class=string&gt;"pratyaywrites.hashnode.dev"&lt;/span&gt;) {
    &lt;span class=label&gt;posts&lt;/span&gt;(&lt;span class=type&gt;first&lt;/span&gt;: &lt;span class=number&gt;20&lt;/span&gt;) {
      &lt;span class=type&gt;edges&lt;/span&gt; {
        &lt;span class="constant variable"&gt;node&lt;/span&gt; {
          &lt;span class=type&gt;coverImage&lt;/span&gt; {
            &lt;span class="constant variable"&gt;url&lt;/span&gt;
          }
          &lt;span class=type&gt;title&lt;/span&gt;
          &lt;span class="constant variable"&gt;brief&lt;/span&gt;
          &lt;span class="constant variable"&gt;url&lt;/span&gt;
        }
      }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The output after querying is:&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1704122802347/de323a73-e0fc-414b-ade2-383f4a5559bd.png&gt;
&lt;figcaption&gt;API response&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;I am now going to use this JSON data on my personal portfolio site: &lt;a href=https://github.com/Pratyay360/pratyay-profile target=_blank&gt;pratyay-profile&lt;/a&gt;&lt;h3&gt;How to Integrate This GraphQL API into Next.js or React.js&lt;/h3&gt;&lt;p&gt;I suggest following the same approach as mine:&lt;pre&gt;&lt;code class=tsx&gt;&lt;span class=string&gt;"use client"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;React&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;useEffect&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;useState&lt;/span&gt; &lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class=keyword&gt;from&lt;/span&gt; &lt;span class=string&gt;"react"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;Skeleton&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;SkeletonTheme&lt;/span&gt; &lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class=keyword&gt;from&lt;/span&gt; &lt;span class=string&gt;"react-loading-skeleton"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class=string&gt;"react-loading-skeleton/dist/skeleton.css"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=keyword&gt;import&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;Image&lt;/span&gt; &lt;span class=keyword&gt;from&lt;/span&gt; &lt;span class=string&gt;"next/image"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

&lt;span class=keyword&gt;type&lt;/span&gt; &lt;span class=type&gt;Post&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
  &lt;span class=property&gt;node&lt;/span&gt;: &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
    &lt;span class=property&gt;coverImage&lt;/span&gt;: &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
      &lt;span class=property&gt;url&lt;/span&gt;: &lt;span class=type_builtin&gt;string&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class=constant_builtin&gt;null&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
    &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
    &lt;span class=property&gt;title&lt;/span&gt;: &lt;span class=type_builtin&gt;string&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class=constant_builtin&gt;null&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
    &lt;span class=property&gt;brief&lt;/span&gt;: &lt;span class=type_builtin&gt;string&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class=constant_builtin&gt;null&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
    &lt;span class=property&gt;url&lt;/span&gt;: &lt;span class=type_builtin&gt;string&lt;/span&gt; &lt;span class=operator&gt;|&lt;/span&gt; &lt;span class=constant_builtin&gt;null&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
  &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

&lt;span class=keyword&gt;export&lt;/span&gt; &lt;span class=keyword&gt;default&lt;/span&gt; &lt;span class=keyword&gt;function&lt;/span&gt; &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;Home&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
  &lt;span class=comment&gt;// Added the API query schema to get data from Hashnode.&lt;/span&gt;
  &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;posts&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;setPosts&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;useState&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class=type&gt;Post&lt;/span&gt;&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
  &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;loading&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;setLoading&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;useState&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=constant_builtin&gt;true&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

  &lt;span class=comment&gt;// Change the host URL to your own publication URL.&lt;/span&gt;
  &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;query&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=string&gt;`
    query Publication {
      publication(host: "pratyaywrites.hashnode.dev") {
        posts(first: 10) {
          edges {
            node {
              coverImage {
                url
              }
              title
              brief
              url
            }
          }
        }
      }
    }
  `&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

  &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;useEffect&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;=&amp;gt;&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
    &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;fetchPosts&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
  &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class=punctuation_bracket&gt;[&lt;/span&gt;&lt;span class=punctuation_bracket&gt;]&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

  &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;fetchPosts&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=keyword&gt;async&lt;/span&gt; &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;=&amp;gt;&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
    &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;response&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=keyword&gt;await&lt;/span&gt; &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;fetch&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=string&gt;"https://gql.hashnode.com"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
      &lt;span class=property&gt;method&lt;/span&gt;: &lt;span class=string&gt;"POST"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt;
      &lt;span class=property&gt;headers&lt;/span&gt;: &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;
        &lt;span class=string&gt;"Content-Type"&lt;/span&gt;: &lt;span class=string&gt;"application/json"&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt;
      &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt;
      &lt;span class=property&gt;body&lt;/span&gt;: &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;JSON&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;stringify&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt; &lt;span class=constant&gt;query&lt;/span&gt; &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt;
    &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

    &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;result&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class=keyword&gt;await&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;response&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;json&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
    &lt;span class=keyword&gt;const&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;fetchedPosts&lt;/span&gt; &lt;span class=operator&gt;=&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;result&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;data&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;publication&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;posts&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;edges&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

    &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;setPosts&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;fetchedPosts&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
    &lt;span class="constant constructor function function_builtin type variable variable_builtin"&gt;setLoading&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=constant_builtin&gt;false&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
  &lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;

  &lt;span class=keyword&gt;return&lt;/span&gt; &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
    &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;SkeletonTheme&lt;/span&gt; &lt;span class="attribute property"&gt;baseColor&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"#202020"&lt;/span&gt; &lt;span class="attribute property"&gt;highlightColor&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"#444"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;h1&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"mt-10 p-10 text-center text-3xl font-bold tracking-[20px] text-gray-500 lg:text-4xl"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
        Blogs by Pratyay Mitra Mustafi
      &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;h1&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;loading&lt;/span&gt; &lt;span class=operator&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
        &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"mt-10 p-10"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;Skeleton&lt;/span&gt; &lt;span class="attribute property"&gt;height&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=number&gt;500&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class="attribute property"&gt;count&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=number&gt;1&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class=punctuation_bracket&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;

      &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;section&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"body-font text-gray-300"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"container mx-auto px-5 py-24"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"flex flex-wrap justify-center whitespace-break-spaces"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;posts&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class="function_method property"&gt;map&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class=punctuation_bracket&gt;(&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin variable_parameter"&gt;post&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;,&lt;/span&gt; &lt;span class="constant constructor function_builtin type variable variable_builtin variable_parameter"&gt;index&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt; &lt;span class=operator&gt;=&amp;gt;&lt;/span&gt; &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
              &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"p-4 md:w-1/3"&lt;/span&gt; &lt;span class="attribute property"&gt;key&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;index&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;a&lt;/span&gt;
                  &lt;span class="attribute property"&gt;href&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;post&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;node&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;url&lt;/span&gt; &lt;span class=operator&gt;||&lt;/span&gt; &lt;span class=string&gt;""&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                  &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"block"&lt;/span&gt;
                  &lt;span class="attribute property"&gt;target&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"_blank"&lt;/span&gt;
                  &lt;span class="attribute property"&gt;rel&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"noreferrer"&lt;/span&gt;
                &lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"h-full overflow-hidden rounded-lg border-2 border-gray-200 border-opacity-60 transition-all hover:scale-110"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;post&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;node&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;coverImage&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;url&lt;/span&gt; ? &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
                      &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;Image&lt;/span&gt;
                        &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"h-48 w-full object-cover object-center md:h-36 lg:h-48"&lt;/span&gt;
                        &lt;span class="attribute property"&gt;src&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;post&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;node&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;coverImage&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;url&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                        &lt;span class="attribute property"&gt;alt&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;post&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;node&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;title&lt;/span&gt; &lt;span class=operator&gt;||&lt;/span&gt; &lt;span class=string&gt;""&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                        &lt;span class="attribute property"&gt;width&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=number&gt;350&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                        &lt;span class="attribute property"&gt;height&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=number&gt;250&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                      &lt;span class=punctuation_bracket&gt;/&amp;gt;&lt;/span&gt;
                    &lt;span class=punctuation_bracket&gt;)&lt;/span&gt; : &lt;span class=punctuation_bracket&gt;(&lt;/span&gt;
                      &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;Skeleton&lt;/span&gt; &lt;span class="attribute property"&gt;width&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=number&gt;350&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class="attribute property"&gt;height&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class=number&gt;250&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt; &lt;span class=punctuation_bracket&gt;/&amp;gt;&lt;/span&gt;
                    &lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;

                    &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"p-6"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                      &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;h2&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"title-font mb-3 text-lg font-medium text-gray-300"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;post&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;node&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;title&lt;/span&gt; &lt;span class=operator&gt;||&lt;/span&gt; &lt;span class=string&gt;""&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                      &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;h2&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;

                      &lt;span class="operator punctuation_bracket"&gt;&amp;lt;&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;p&lt;/span&gt; &lt;span class="attribute property"&gt;className&lt;/span&gt;&lt;span class=operator&gt;=&lt;/span&gt;&lt;span class=string&gt;"mb-3 leading-tight text-gray-400 sm:leading-4"&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class=punctuation_bracket&gt;{&lt;/span&gt;&lt;span class="constant constructor function_builtin type variable variable_builtin"&gt;post&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;node&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;.&lt;/span&gt;&lt;span class=property&gt;brief&lt;/span&gt; &lt;span class=operator&gt;||&lt;/span&gt; &lt;span class=string&gt;""&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
                      &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;p&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;a&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
          &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;div&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;section&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=punctuation_bracket&gt;&amp;lt;/&lt;/span&gt;&lt;span class="constant constructor function_builtin tag type variable variable_builtin"&gt;SkeletonTheme&lt;/span&gt;&lt;span class="operator punctuation_bracket"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class=punctuation_bracket&gt;)&lt;/span&gt;&lt;span class=punctuation_delimiter&gt;;&lt;/span&gt;
&lt;span class=punctuation_bracket&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That’s it. You can now easily display Hashnode data on your website.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1704123416621/415838c4-f519-4787-8d77-b7640ac3bfe6.png&gt;
&lt;figcaption&gt;Result blog&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Refer to Hashnode’s official documentation &lt;a href=https://apidocs.hashnode.com/ target=_blank&gt;https://apidocs.hashnode.com/&lt;/a&gt; To tailor any changes to your needs. If you encounter issues, consult the API documentation (&lt;a href=https://apidocs.hashnode.com/ target=_blank&gt;https://apidocs.hashnode.com/&lt;/a&gt;) for the most up‑to‑date schema and query options.&lt;p&gt;&amp;nbsp;</description>
          <link>https://www.pratyay.online/blog/13august2023/</link>
          <pubDate>Wed, 01 Mar 2023 11:11:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/13august2023/</guid>
        </item>
      
    
      
        <item>
          <title>Setting up a Free Self Hosted VPN Using only GitHub Education Pack for free</title>
          <description>&lt;h2&gt;Step by Step Guide to Setting Up a Free Self Hosted VPN Using GitHub Education Pack&lt;/h2&gt;&lt;h3&gt;Setting Up a privacy friendly Free VPN&lt;/h3&gt;&lt;p&gt;To create privacy focused VPN you need a server with a public IP address. You have two practical options:&lt;ol&gt;&lt;li&gt;Use a VPS – A virtual private server comes with a dedicated public IP by default, making configuration straightforward and hassle‑free.&lt;li&gt;Self‑host on a home server – If you prefer to run OpenVPN on your own hardware, you must forward the necessary ports. However, most ISPs use Carrier‑Grade NAT (CGNAT), which makes obtaining a public IP difficult, and some providers charge extra for a dedicated address.&lt;/ol&gt;&lt;p&gt;Choosing a VPS especially one located in another country—simplifies the setup and lets you bypass national censorship, an advantage that self‑hosting on a typical home network cannot provide.&lt;p&gt;With the GitHub education pack you are getting a trial version of &lt;a href=http://aws.amazon.com target=_blank&gt;AWS&lt;/a&gt;, &lt;a href=http://azure.microsoft.com target=_blank&gt;azure&lt;/a&gt;, and &lt;a href=https://m.do.co/c/fc5d82bc2f25 target=_blank&gt;digital ocean&lt;/a&gt; You must have to have a credit card or an international debit card to verify your payment method. Here I am going to use the &lt;a href=https://m.do.co/c/fc5d82bc2f25 target=_blank&gt;digital ocean&lt;/a&gt; in this tutorial you can use your preferred VPS providers.&lt;p&gt;To improve privacy and add an extra layer of security on DigitalOcean, configure your VPS to use SSH key authentication instead of password authentication. Passwords are vulnerable to brute‑force attacks, whereas SSH keys provide a more secure, reliable method of access.&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;ssh-keygen&lt;/span&gt; &lt;span class=constant&gt;-t&lt;/span&gt; &lt;span class=constant&gt;rsa&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Type this command in your terminal to generate public/private rsa key pair.&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;cat&lt;/span&gt; &lt;span class=constant&gt;.ssh/id_rsa.pub&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Type this command to see your public/private rsa key pair. Now copy it and paste it here&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670950407505/HJoUqM82s.png&gt;
&lt;figcaption&gt;gen ssh keys&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670950349767/FYIlaVpZd.png&gt;
&lt;figcaption&gt;add ssh keys&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Now go to market place and search here “OPENVPN”&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670950531573/cO02aZcP7.png&gt;
&lt;figcaption&gt;create droplets&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670950588606/VQ-g7vKu_.png&gt;
&lt;figcaption&gt;openvpn access server&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Click here and select a server configuration for you as we are using it as VPN our traffic is going to be a bit high so we are choosing this with a high bandwidth(2 terabytes)&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670950729615/NLrmhfMC1.png&gt;
&lt;figcaption&gt;pricing page&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670950858960/22xqbPwp6.png&gt;
&lt;figcaption&gt;country choose&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Choose your preferred location from here&lt;p&gt;Now we are all done and create your customized VPS by clicking here&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670950960541/O7PYfrkup.png&gt;
&lt;figcaption&gt;deploy button&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Now you have to wait for some minutes to let your VPS provider here digital ocean create a VPS for you after everything done, now log into your VPS with ssh like this&lt;pre&gt;&lt;code class=bash&gt;&lt;span class="constant function"&gt;ssh&lt;/span&gt; &lt;span class=constant&gt;root@&lt;/span&gt;&lt;span class=operator&gt;&amp;lt;&lt;/span&gt;ipv4 address&lt;span class=operator&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You will automatically get some prompt there create an OpenVPN user from there and set up a password for it after everything is done go to your browser and search&lt;p&gt;And log in there and configure your VPN according to you now log out from there and open your IPv4 address from there&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670951509209/bNrYeEmTM.png&gt;
&lt;figcaption&gt;open vpn login page&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Now just log in and download your preferred client here everything will be preconfigured according to your server&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670951658005/ai13LNUU2.png&gt;
&lt;figcaption&gt;download proffered version &lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Just download your client and enter your password in the app which you have.&lt;br&gt;Generated during setup now you are all done if you already have the OpenVPN app&lt;br&gt;On your phone or laptop you can simply download the profile file from here&lt;br&gt;And import it into the Open VPN app that’s it.&lt;p&gt;&lt;figure&gt;&lt;img src=https://cdn.hashnode.com/res/hashnode/image/upload/v1670951908765/9EyMfT-k6.png&gt;
&lt;figcaption&gt;already configured version&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;p&gt;Here’s how to download only your profile.&lt;p&gt;Running your own VPN on a VPS gives you greater control over server configuration and data storage than using a third party VPN provider. While it doesn’t eliminate every privacy risks your VPS provider and the network path still matter it can be a valuable setup if you understand the tradeoffs.&lt;p&gt;If you’d like to support this blog, please use my DigitalOcean referral link below.&lt;p&gt;&lt;figure&gt;&lt;img src=https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg&gt;
&lt;figcaption&gt;DigitalOcean Referral Badge&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;</description>
          <link>https://www.pratyay.online/blog/13december2022/</link>
          <pubDate>Tue, 13 Dec 2022 00:00:00 +0000</pubDate>
          <guid>https://www.pratyay.online/blog/13december2022/</guid>
        </item>
      
    
  </channel>
</rss>