App stores
Build store packages, publish to Google Play and App Store Connect, write store listings, and ship asset packs and Steam depots.
-channel store, or updates.channel: store, builds the desktop and Android targets for their stores, which update them, in place of the installers and install scripts:
| Target | Store package |
|---|---|
| macOS | <name>-<version>-macos-<arch>.pkg for the Mac App Store: the app in the App Sandbox, signed with the provisioning profile’s identity and packaged with your team’s installer identity |
| Windows | <name>-<version>-windows-<arch>.msix for the Microsoft Store, which signs it on publishing |
| Linux | Installable <name>-<version>-linux-<arch>.flatpak, plus an AppStream-bearing .tar.gz and flatpak/<id>.yml for Flathub or flatpak-builder on GNOME’s runtime |
| Android | <name>-<version>-android-<arch>.aab, an App Bundle for Google Play signed with sign.keystore, the upload key |
The MSIX reads each language’s display name from the catalogs’ appName, falling back to the source language. Its Start, taskbar and Store logos include 100%, 125%, 150%, 200% and 400% variants. The tool writes their resource index on macOS; no Windows SDK is needed.
-target macos selects both macOS architectures on the store channel and writes one <name>-<version>-macos-universal.pkg, as does -target macos_universal. Select -target android_arm64,android_x64 for one <name>-<version>-android-universal.aab containing arm64-v8a and x86_64. The x86_64 slice requires an Android NDK.
macos: category: public.app-category.productivity # LSApplicationCategoryType, which the Mac App Store requires # entitlements: { com.apple.security.files.downloads.read-write: true } # beyond the network, the files the user picks and what apple.info explainswindows: store: # as Partner Center's Product identity lists them identity: 12345Example.Hello publisher: CN=00000000-0000-0000-0000-000000000000 publisher_name: Example # device_capabilities: [microphone, webcam] # the devices the app uses, which Windows asks the user forlinux: summary: Says hello # one line for software centers license: MIT # an SPDX expression; LicenseRef-proprietary by default # flatpak_runtime: "51" # GNOME's runtime versionandroid: target_sdk: 36 # the targetSdkVersion Google Play requiressign: macos_profile: assets/MacAppStore.provisionprofile # the Mac App Store's profile # installer: "3rd Party Mac Developer Installer: Example (ABCDE12345)" # by default the keychain's of the profile's teamThe runtime targets API 36 when android.target_sdk is unset. An Android App Bundle build fails below API 36, which Google Play requires for new mobile apps and updates from August 31, 2026. A standalone APK build warns and continues.
Set sign.macos_profile to sign the Mac package for upload. Without widgets, the unsigned package still runs in the sandbox, which lets you test access to the app’s container, the network and the files the user picks. A store build with widgets requires both sign.macos_profile for <id> and a macOS sign.widgets_profile for <id>.widgets, from the same team and granting apple.app_group (default group.<id>). Both bundles use that shared container; no home-directory exception is added. -installers=false keeps the sandbox and profile signatures while omitting the .pkg and its installer identity. Upload the .msix in Partner Center and the .aab in Play Console. Submit flatpak/<id>.yml to Flathub once the release holds the archives it names. flatpak-builder builds it locally too. Install a bundle with flatpak install --user ./<name>-<version>-linux-<arch>.flatpak; GNOME’s matching runtime must be installed or available from a configured remote. Builds write the bundle in Go without a Linux toolchain. Store packages use a transparent icon when artwork is absent and Utility when linux.categories is unset. For installation outside the Store, set sign.certificate to sign the MSIX; its certificate subject must match windows.store.publisher, and the receiving machine must trust the certificate. Without signing settings the Store signs the uploaded package.
Publish to Google Play
Section titled “Publish to Google Play”Enable the Google Play Developer API and grant a service account (or user account) permission to release the app in Play Console › Users and permissions. Google Play API setup
nsgo publish authenticates to Google Play using:
NSGO_PLAY_SERVICE_ACCOUNT(takes precedence when set): the service account’s JSON key text or the path to its key file.- Application Default Credentials (ADC) (used when
NSGO_PLAY_SERVICE_ACCOUNTis unset, requesting thehttps://www.googleapis.com/auth/androidpublisherscope):- Local development (keyless): impersonate the publishing service account with
gcloud auth application-default login --impersonate-service-account=<service-account>(grant your userroles/iam.serviceAccountTokenCreatoron that service account; gcloud’s default OAuth client does not grant theandroidpublisherscope directly, so impersonation is the recommended keyless path). - GitHub Actions and CI (keyless): configure Workload Identity Federation with
google-github-actions/auth, which writes anexternal_accountfile and setsGOOGLE_APPLICATION_CREDENTIALS. - Other Google Cloud environments:
GOOGLE_APPLICATION_CREDENTIALS, the gcloud ADC file, or the GCE/Cloud Run metadata server.
- Local development (keyless): impersonate the publishing service account with
The command prints the credential type and account email it used (never any secret) and, on an HTTP 401 or 403 from Google Play, reports which identity was refused so you can grant it access in Play Console › Users and permissions.
nsgo build -target android -channel storensgo publish -target android -track internalThe command finds the App Bundle for the project’s version in build.output/releases. Pass a .aab path after the flags to select a file when there are multiple builds. Use internal, production, or the track ID of a closed test. The command reads the package and version code from the bundle, requires a code higher than every release on that track, then uploads the bundle and commits the release.
Omitting -rollout releases to everyone on the track; on production the command explicitly reports a full (100%) rollout. To start at 10% instead, retaining the previous completed release for everyone else:
nsgo publish -target android -track production -rollout 0.1 \ -release-name "1.4" -in-app-update-priority 3The name and the Play in-app update priority (an integer from 0 to 5) are optional. If the project has store listings, their localized Play release notes go on the uploaded bundle’s version in the same edit. For a standalone .aab, pass -listings DIR to attach notes. The command does not upload the rest of the listing metadata.
Manage a staged release from the project directory without uploading another bundle:
nsgo publish -target android -track production -rollout-action increase -rollout 0.25nsgo publish -target android -track production -rollout-action haltnsgo publish -target android -track production -rollout-action resumensgo publish -target android -track production -rollout-action completeA fraction must be greater than 0 and less than 1. increase requires a fraction above the current one; it cannot reduce the rollout. halt stops distribution to new users, resume restores the previous fraction, and complete rolls an active release out to 100%. Resume a halted release before increasing or completing it. Each action requires exactly one staged release on the track. After a rejection, use -changes-not-sent-for-review when Play requires it, then send the committed changes for review in Play Console › Publishing overview.
Store listings
Section titled “Store listings”Store metadata (titles, subtitles, descriptions, keywords, release notes, URLs, screenshots and previews) lives in the repository as plain-text YAML and Markdown under store/ (or store.dir in nsgo.yaml):
store/ listing.yaml # version: 1, default_locale, app_store and google_play settings en-US/ listing.yaml # version: 1, title, subtitle, short_description, keywords, URLs, media description.md # full description (optional file in place of YAML description) release_notes.md # what's new (optional file in place of YAML release_notes) promotional_text.md # App Store promotional text (optional file) screenshots/ zh-Hans/ listing.yaml description.md release_notes.md screenshots/Both listing.yaml files require version: 1 and refuse unknown keys. Canonical locale directories such as zh-Hans map automatically to each store’s code (zh-Hans on App Store Connect, zh-CN on Google Play) unless overridden per store with app_store.locale or google_play.locale.
nsgo publish -store all -dry-run # validate lengths, locales and media without uploadingnsgo publish -store appstore,play # validate and upload to App Store Connect and Google Playnsgo publish -store play -track production -version-code 10400When uploading listings alone, -track (or google_play.track) also updates the Play release notes on that track. If it has multiple releases, -version-code must identify exactly one release. With no version code specified, a track with one release uses that release; an empty track gets a notes-only draft, not a published release. Use -changes-not-sent-for-review to commit the Play listing edit without sending it for review.
Validation runs before reading credentials or making any HTTP request, checking required fields, locale codes, URL schemes, media files and counts (up to 10 screenshots and 3 previews per App Store display type; up to 8 screenshots per Google Play image type), and character limits (App Store: title 30, subtitle 30, keywords 100, promotional text 170, description 4000, release notes 4000; Google Play: title 30, short description 80, description 4000, release notes 500).
Upload credentials come from the environment or Google Application Default Credentials: NSGO_APP_STORE_KEY, NSGO_APP_STORE_KEY_ID and NSGO_APP_STORE_ISSUER (falling back to the notarization key NSGO_NOTARY_KEY, NSGO_NOTARY_KEY_ID and NSGO_NOTARY_ISSUER) for App Store Connect, and NSGO_PLAY_SERVICE_ACCOUNT (service-account JSON file path or JSON text, taking precedence) or Application Default Credentials (gcloud auth application-default login --impersonate-service-account=…, GOOGLE_APPLICATION_CREDENTIALS, Workload Identity Federation, or GCE metadata) for Google Play.
Store compliance
Section titled “Store compliance”Use nsgo.yaml to track the status of each release questionnaire.
compliance: app_store: { age_rating: false } google_play: { data_safety: false } steam: { content_survey: false }Set an entry to true after completing its questionnaire. A matching -channel store or -channel steam build reminds you about entries set to false. Omit any entry you do not track in YAML.
- Complete the age rating questionnaire and App Privacy details in App Store Connect.
- For Apple’s encryption questionnaire, set
apple.info.ITSAppUsesNonExemptEncryptionto your app’s answer as a YAML boolean. If Apple sends an approval code, put it inapple.info.ITSEncryptionExportComplianceCodeas a string. You can leave the keys out and answer at upload. Apple store builds check the types of these keys and the structure of the bundle’s privacy manifest. - Complete Data safety in Play Console. Apps distributed exclusively on the internal testing track are exempt.
- Complete the Content Survey in Steamworks before submitting the game for review.
App Store Connect
Section titled “App Store Connect”Create an app in App Store Connect and sign an iOS device IPA with an App Store distribution profile or a macOS store PKG with your team’s installer identity. On a Mac with Xcode, set NSGO_APP_STORE_KEY to your App Store Connect team key’s .p8 file or its text, NSGO_APP_STORE_KEY_ID to its key ID, and NSGO_APP_STORE_ISSUER to its issuer ID; without them the notarization key (NSGO_NOTARY_KEY, NSGO_NOTARY_KEY_ID, NSGO_NOTARY_ISSUER) is used, as for store listings. Give that key access to the app and permission to upload builds.
nsgo publish ios path/to/Hello.ipansgo publish macos path/to/Hello.pkgThe tool checks the bundle’s build number before uploading, then reports Apple’s processing result for TestFlight. Increase build_number for the next upload. macOS build numbers increase across all app versions, while iOS can restart the sequence for a new version. Submit a processed build for App Review separately in App Store Connect. Apple’s distribution guide
On macOS and iOS, a scroll view’s edge effects (Scroll.EdgeEffects), macOS backdrop blurs with no IOS.BackdropMaterial, and backdrop color filters (alone, or over a blur with no IOS.BackdropMaterial) draw through Core Animation’s private CABackdropLayer and CAFilter, as AppKit’s and UIKit’s own materials and edge effects do, since no public API blurs by a radius, varies a blur across a view, or applies a backdrop color matrix. App Store review may reject apps that use private APIs: NSGo calls them only for scroll views with edge bars and those backdrop filters, but every macOS and iOS build contains their names.
Every Apple bundle build writes, the app, its widget extension, App Clip and Apple Watch app, and a -dynamic -embed framework, carries a privacy manifest, PrivacyInfo.xcprivacy, declaring the required-reason APIs NSGo and Go’s runtime use: user defaults (CA92.1), file timestamps (C617.1) and system boot time (35F9.1). apple.privacy adds the app’s own: accessed_apis, each category’s reasons, tracking, tracking_domains and collected_data, entries of NSPrivacyCollectedDataTypes as Apple names them; a PrivacyInfo.xcprivacy in resources/ is merged with them rather than replaced.
The Info.plist of each iOS, tvOS and watchOS bundle build writes for devices, the app’s, its widget extension’s and App Clip’s, carries the SDK and Xcode DT keys App Store Connect checks, read from the Xcode that builds it, and UIRequiredDeviceCapabilities: [arm64]; simulator bundles leave them out, and a key apple.info sets keeps its value. apple.multiple_scenes: true sets UIApplicationSupportsMultipleScenes in an iOS app’s scene manifest, which is false by default: on an iPad the user can then open more than one window of the app, and each shows the app’s main view anew, with state of its own and the app’s shared signals and storage, until the user closes it.
Store asset packs
Section titled “Store asset packs”Declare large asset directories in mobile.asset_packs. Files within those directories are delivered separately from the base Android App Bundle and iOS app. Pack names start with a lowercase letter and can contain lowercase letters, digits and underscores.
The bundled asset checks also apply to asset packs. For a pack inside the project, build.allow_resources paths are relative to nsgo.yaml, not to that pack. Packs outside the project cannot use exceptions.
mobile: asset_packs: - {name: levels, dir: resources/levels, delivery: install-time} - {name: voices, dir: large-assets/voices, delivery: fast-follow}Build Android packs with nsgo build -channel store -target android_arm64. Use bundletool build-apks --local-testing and bundletool install-apks to test the bundle on a device. NSGo opens installed install-time packs. The fast-follow modules are included for Play delivery, and reading those packs from the Play Asset Delivery SDK is still pending.
On iOS, nsgo build -target ios maps install-time to Apple’s essential policy and fast-follow to prefetch, both on first install and updates. Xcode 26 or later builds the Background Assets downloader. Use a shared apple.app_group or the default group.<id>. The app’s sign.profile and the <id>.assetdownloader extension’s sign.asset_packs_profile both need that group. Upload the .aar files from dist/releases alongside the IPA using App Store Connect’s asset-pack upload workflow. Creating managed asset packs
From a goroutine, call mobile.AssetPackReady(ctx, "levels") to check readiness and mobile.OpenAssetPackFile("levels", "intro.map") to open a file relative to the declared directory. Close the returned reader after use. Testing Apple asset packs locally
Steam depots
Section titled “Steam depots”nsgo build -channel steam -target macos_universal,windows_x64,linux_x64Set updates.channel: steam to use the channel by default. Select macOS, Windows and Linux targets. Upload each dist/<name>-<version>-<target> directory to its Steam depot, using the app bundle on macOS, the executable on Windows and Linux arm64, and steam-launch.sh on Linux x64 as the launch option. Steam handles updates. The directories contain no installers, self-updater or steam_appid.txt.
Linux x64 depots include GTK 4 and its dependencies for Steam Linux Runtime 3.0 and 4.0. The launcher uses them only when the system has no GTK 4.14 or newer. Keep nsgo-gtk/ next to the launcher: its licenses/ holds the libraries’ licenses, the sources they were built from and the build script, which the LGPL requires for GLib, Pango and GTK. Linux arm64 needs GTK 4 available in its runtime.
For local testing outside the Steam client, set steam: {app_id: 480} in nsgo.yaml, replacing 480 with your Steamworks App ID. nsgo dev writes the ID to steam_appid.txt in its native build directory and launches the app with that directory as its working directory. Steamworks API, SteamPipe.