Skip to content

tan.json ​

tan.json lives at the project root. File paths usually resolve from that directory. frontend.dist resolves from frontend.dir. tan init adds the optional $schema field for editor completion and validation. Applications may add custom top-level fields such as cloud. Tan ignores them; the application must read them itself. Built-in fields are still validated, and built-in objects such as frontend reject unknown members. Older versions of tan may reject custom top-level fields. Do not store passwords in the configuration.

JSON Schema

Example ​

json
{
  "name": "Notes",
  "id": "com.example.notes",
  "version": "1.2.0",
  "icon": "icon.png",
  "copyright": "© 2026 Example Ltd",
  "desktopBuildTags": ["production"],
  "frontend": {
    "dir": "frontend",
    "dist": "dist",
    "dev": "npm run dev",
    "build": "npm run build"
  },
  "urlSchemes": ["notes"],
  "fileAssociations": [{ "ext": "note", "name": "Notes document" }],
  "macos": { "minVersion": "11.0", "entitlements": "macos/notes.entitlements" },
  "windows": {
    "certificate": "windows/codesign.pfx",
    "publisher": "CN=Example Ltd, O=Example Ltd, C=US"
  },
  "permissions": ["camera", "location"],
  "ios": {
    "minVersion": "17.0",
    "signIdentity": "Apple Development: Jane Doe (TEAMID)",
    "provisioningProfile": "mobile/notes.mobileprovision",
    "usageDescriptions": { "camera": "Scan QR codes with the camera." }
  },
  "android": { "minSdk": 24, "keystore": "mobile/release.jks", "keyAlias": "upload" }
}

General fields ​

FieldMeaning
$schemaOptional schema URL for editors
nameRequired app display and package name. The executable name keeps ASCII letters, digits, hyphens, and underscores. Include at least one ASCII letter or digit
idRequired reverse-DNS identifier for the bundle ID, Android application ID and MSIX identity
versionRequired. One to three dot-separated numbers with an optional - or + suffix. iOS strips the suffix from CFBundleShortVersionString
iconSquare, full-bleed master PNG, ideally 1024×1024. Tan derives the desktop shapes
iconsPer-platform icon overrides
copyrightCopyright metadata for bundles and installers
localizationsApple bundle CFBundleLocalizations. Defaults to en, zh-Hans, zh-Hant and ja
urlSchemesLowercase custom schemes, such as notes for notes://…. Declare the same schemes in tango.Options.URLSchemes
appLinksUniversal Link and Android App Link domains, such as example.com or *.example.com. Use tan applinks to generate website verification files
appLinkPathsAllowed path prefixes, such as /open/. Defaults to every path
fileAssociationsDocument types with ext (without a dot), name, role (editor by default or viewer) and mime (defaults to application/x-<exe>-<ext>)
permissionsMobile capabilities. See Mobile

Desktop builds ​

FieldMeaning
featuresDesktop backend profile for tan build and tan package. Omit to build all capabilities. macOS supports ["webview"], ["canvas"] and ["webview", "canvas"]. The -features flag overrides it and -features all selects all capabilities
desktopBuildTagsExtra Go tags for desktop builds from tan build and tan package, merged with tags from GOFLAGS. Each entry is a single Go tag. The names tango_dev, tango_release and tags prefixed with tango_backend_ are reserved
cgoDesktop builds and desktop development builds default to CGO_ENABLED=0. Set to true to link C libraries. For cross-compilation, set CC to the target toolchain. Mobile has its own cgo toolchain
desktopHelpersExecutables shipped with the desktop app. Each entry has a name without an extension and a shell build command run from the project root. Names start with a letter or digit, may also contain hyphens or underscores, and are unique without regard to case

The helper command receives TAN_TARGET_OS and TAN_TARGET_ARCH (universal for a universal macOS build). It must write a nonempty regular file to TAN_HELPER_OUTPUT. The build puts helpers in .app/Contents/Helpers/ on macOS and cli/ on Windows and Linux, adding .exe on Windows. Installer paths depend on the format. Desktop helpers

frontend ​

FieldMeaning
dirFront-end root and working directory for front-end commands
distBuild output relative to dir. Use . to serve sources directly
installRuns if dir contains a package.json without node_modules. Defaults to npm install
devDev-server command. tan dev reads its first printed HTTP URL
devURLExplicit dev-server URL when it cannot be read from the output
parallelDevBuildDefaults to false. Set to true to let desktop tan dev run the first Go build while it waits for its own frontend.dev command to print a URL
buildProduction build command

Parallel preparation starts after dependency installation succeeds. The app starts once the front end has printed its URL and the Go build has succeeded. Enable this only if frontend.dev leaves all files required by the first Go build alone, including files matched by go:embed. The option has no effect with -url or frontend.devURL, static serving, mobile development, or release builds.

Omit frontend for a fully Go-drawn app.

macos / windows ​

FieldMeaning
macos.minVersionLSMinimumSystemVersion, default 11.0
macos.entitlementsEntitlements plist for tan sign
windows.certificateAuthenticode certificate (.pfx or .p12). Set the password with TANGO_WINDOWS_CERT_PASSWORD or -password
windows.timestampURLRFC 3161 timestamp server, default http://timestamp.digicert.com
windows.publisherCertificate subject beginning with CN=. Required for MSIX and must match the certificate

ios / android ​

FieldMeaning
ios.minVersionMinimum iOS version and deployment target, default 17.0
ios.buildCFBundleVersion, defaults to version without its suffix
ios.signIdentityDevice signing identity. TANGO_IOS_SIGN_IDENTITY takes precedence
ios.provisioningProfileProvisioning profile required for device builds
ios.entitlementsOptional. Defaults to the entitlements granted by the profile
ios.usageDescriptionsCustom iOS prompt text by declared permission name
android.minSdk / targetSdkDefaults to 24 / 36. The minimum cannot be below 24, and the target must be at least the minimum
android.versionCodeDefaults to major*10000 + minor*100 + patch, with minor and patch capped at 99 and a minimum result of 1
android.keystore / keyAliasRequired together for release signing. Passwords come from TANGO_ANDROID_KEYSTORE_PASSWORD and TANGO_ANDROID_KEY_PASSWORD. The key password defaults to the keystore password

linux ​

FieldMeaning
linux.packagedeb and rpm package name. Defaults to the lowercase app name with words joined by hyphens
linux.maintainerDebian Maintainer and RPM Packager, in Name <email> form
linux.descriptionSummary on the first line, with an optional long description below. Defaults to the app name
linux.homepagePackage homepage URL
linux.licenseRPM License, default Proprietary
linux.depends / linux.rpmRequiresAdditional deb and rpm dependencies, one dependency per entry
linux.flatpak.runtimeVersionorg.gnome.Platform branch, default 50
linux.flatpak.finishArgsAdditional sandbox permissions, such as --socket=pulseaudio or --filesystem=xdg-documents

installer ​

FieldMeaning
installer.windows.scopeNSIS installation scope. user (default) uses %LOCALAPPDATA%\Programs and HKCU. machine uses Program Files and HKLM and requires administrator privileges
installer.windows.licenseLicense page text file (.txt, .md or no extension) or .rtf
installer.windows.welcomeShow the welcome page, default true
installer.windows.sidebarImage / headerImageOptional 164×314 sidebar and 150×57 header images, in BMP or PNG
installer.windows.runAfterInstallOffer to run the app on the finish page. On by default for per-user installs, off for machine-wide installs
installer.windows.desktopShortcutask (default), always or never
installer.windows.languageDialogAsk for the installer language at startup. By default the installer follows the Windows display language
installer.windows.includeNSIS script extension for the customInit, customInstall and customUnInstall macros
installer.windows.templateGo text/template file that replaces the generated NSIS script
installer.macos.dmg.backgroundFinder window background in PNG, JPEG or TIFF. A sibling @2x PNG can supply a Retina background
installer.macos.dmg.windowSize / iconSizeWindow width and height and icon size in points, default [540, 380] / 128
installer.macos.dmg.appPosition / applicationsPositionIcon centers in points from the window's top left, default [140, 190] / [400, 190]
installer.macos.dmg.titleVolume name, defaults to the app name

icons ​

All fields are optional. Tan derives missing variants from icon.

FieldMeaning
macos1024×1024 PNG with the macOS icon shape, used as supplied
windowsShaped PNG with a transparent background (at least 256 px) or an .ico
linux.app / linux.symbolicReplacement app PNG and monochrome panel SVG
ios.dark / ios.tintedDark and tinted variants for iOS 18 and later
android.foreground / background / monochromeAdaptive icon layers. The background is a PNG or #RRGGBB. The monochrome layer supports Android 13 themed icons
notificationAndroid notification status-bar icon, with a white shape on a transparent background

Run tan doctor to check icon assets.

Released under the MIT License