These notes cover:
- the Inno Setup installer format changes after 6.4.0,
- how
innoextractwas patched to read them (innoextract-inno-6.5-6.7.patch), - how the standalone
innoextract.pyreads them.
Sources:
| #!/bin/bash | |
| # Dependencies: curl, jq, fzf | |
| # Required Env: TELEGRAM_BOT_TOKEN | |
| set -e | |
| if [[ -z "$TELEGRAM_BOT_TOKEN" ]]; then | |
| echo "Error: TELEGRAM_BOT_TOKEN is not set." >&2 | |
| exit 1 |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| require_cmd() { | |
| command -v "$1" >/dev/null 2>&1 || { | |
| printf 'Missing required command: %s\n' "$1" >&2 | |
| exit 1 | |
| } | |
| } |
| #!/usr/bin/env -S python3 | |
| from pathlib import Path | |
| import subprocess | |
| import json | |
| import sys | |
| import tempfile | |
| import argparse | |
| import logging |
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # dependencies = ["srt", "httpx"] | |
| # /// | |
| import argparse | |
| from concurrent.futures import ThreadPoolExecutor | |
| import json | |
| import logging | |
| import os |
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # dependencies = ["httpx", "srt"] | |
| # /// | |
| """ | |
| # Whisper Subtitles | |
| This script generates SRT subtitles for audio or video files using the OpenAI Whisper API. |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Cet ci pi ti</title> | |
| <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | |
| <style> | |
| :root { | |
| /* Light theme variables */ |
| import Cocoa | |
| import WebKit | |
| struct Options { | |
| var html: String = "" | |
| var url: URL? = nil | |
| var title: String = "HTML Viewer" | |
| var width: CGFloat = 800 | |
| var height: CGFloat = 600 | |
| var env: String = "{}" // Default empty JSON object |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "os" |
| import http.server | |
| import socketserver | |
| import threading | |
| import urllib.parse | |
| def wait_for_oauth_callback(port: int = 9090) -> str: | |
| code: str | None = None | |
| class CallbackHandler(http.server.SimpleHTTPRequestHandler): |