Documentation
¶
Overview ¶
Package project loads and validates an NSGo app's nsgo.yaml configuration, applying the same schema, validation and defaults as the nsgo tool without making network or Git calls.
Index ¶
- Constants
- func AppleVersion(value string) ([3]uint32, bool)
- func GeneratedID(name string) string
- func ValidCommandName(name string) bool
- func ValidTag(tag string) bool
- func ValidateAppImageUpdate(info string) error
- func ValidateChannel(channel string) error
- func ValidateLinuxDeps(field string, depends, recommends LinuxDeps) error
- func ValidateSkipInstallers(systems []string) error
- type AndroidConfig
- type AndroidIcon
- type AppClip
- type AppStoreCompliance
- type AppleConfig
- type AssetPack
- type BuildConfig
- type CloudConfig
- type Command
- type ComponentsConfig
- type Config
- func (c *Config) AllTargets() bool
- func (c *Config) BundleVersion() string
- func (c *Config) Channel() string
- func (c *Config) DefaultID() bool
- func (c *Config) HotReload() bool
- func (c *Config) IOSHasIPadOrientations() bool
- func (c *Config) IOSRequiresFullScreen() bool
- func (c *Config) IOSSupportsMultipleScenes() bool
- func (c *Config) LinuxCategories() []string
- func (c *Config) MacOSCategory() string
- func (c *Config) OpenOutput() bool
- func (c *Config) PackageSlug() string
- func (c *Config) ParseCapabilities() (*pkg.Capabilities, error)
- func (c *Config) ParseRegistries() ([]Registry, error)
- func (c *Config) Resolve(path string) string
- func (c *Config) TagPrefix() string
- func (c *Config) UpdatesAutomatic() bool
- func (c *Config) Validate() error
- type DevConfig
- type FileType
- type GooglePlayCompliance
- type HarmonyConfig
- type HarmonySigning
- type I18nConfig
- type Icons
- type ItchConfig
- type LaunchAppearance
- type LaunchScreen
- type LicensePolicy
- type LinuxConfig
- type LinuxDeps
- type LiveActivities
- type MacOSConfig
- type MiniProgramConfig
- type MobileConfig
- type PrivacySettings
- type QuickLook
- type Registry
- type ReleaseConfig
- type Signing
- type SteamCompliance
- type SteamConfig
- type StoreCompliance
- type StoreConfig
- type UpdatesConfig
- type WebConfig
- type Widget
- type WidgetKind
- type WindowsConfig
- type WindowsStoreConfig
Constants ¶
const ( ChannelDirect = "direct" ChannelStore = "store" ChannelSteam = "steam" ChannelNone = "none" )
Distribution channels accepted by updates.channel and returned by Config.Channel.
Variables ¶
This section is empty.
Functions ¶
func AppleVersion ¶
AppleVersion parses a 1-to-3-part numeric Apple OS version string.
func GeneratedID ¶
GeneratedID is the bundle ID of a project whose nsgo.yaml gives none, made from its name: "dev.nsgo." and the name's ASCII letters and digits, after "app" when they are none or start with a digit.
func ValidCommandName ¶
ValidCommandName reports whether name is letters, digits, '-' and '_' and starts with a letter or a digit, so it is a safe executable or extension name on every platform.
func ValidTag ¶
ValidTag reports whether tag is a valid Go build tag: letters, digits, underscores and dots.
func ValidateAppImageUpdate ¶
ValidateAppImageUpdate checks an AppImage update locator string.
func ValidateChannel ¶
ValidateChannel refuses a channel updates.channel or -channel cannot name.
func ValidateLinuxDeps ¶
ValidateLinuxDeps rejects blank entries and line breaks in Linux package dependency lists.
func ValidateSkipInstallers ¶
ValidateSkipInstallers checks desktop system names for build.skip_installers.
Types ¶
type AndroidConfig ¶
type AndroidConfig struct {
Permissions []string `yaml:"permissions"`
TargetSDK int `yaml:"target_sdk"`
Recording bool `yaml:"recording"`
BackgroundMotion bool `yaml:"background_motion"`
Classes []string `yaml:"classes"`
BackgroundDownloads bool `yaml:"background_downloads"`
// DataSync declares the runtime's generic dataSync foreground service (mobile.StartDataSync) and its permissions.
DataSync bool `yaml:"data_sync"`
LoopbackCleartext bool `yaml:"loopback_cleartext"`
UsesCleartextTraffic bool `yaml:"uses_cleartext_traffic"`
}
AndroidConfig is nsgo.yaml's android section.
type AndroidIcon ¶
type AndroidIcon struct {
// PNG replaces icon.png for Android bitmap icons; adaptive layers remain optional.
PNG string `yaml:"png"`
Foreground string `yaml:"foreground"`
Background string `yaml:"background"`
Monochrome string `yaml:"monochrome"`
}
AndroidIcon configures an Android bitmap or adaptive launcher icon.
type AppClip ¶
type AppClip struct {
Name string `yaml:"name"`
ID string `yaml:"id"`
Main string `yaml:"main"`
Minimum string `yaml:"minimum"`
Domains []string `yaml:"domains"`
Notifications bool `yaml:"notifications"`
Location bool `yaml:"location"`
}
AppClip is nsgo.yaml's app_clip section.
type AppStoreCompliance ¶
type AppStoreCompliance struct {
AgeRating *bool `yaml:"age_rating"`
}
AppStoreCompliance holds App Store questionnaire progress.
type AppleConfig ¶
type AppleConfig struct {
Info map[string]any `yaml:"info"`
ShareTypes []string `yaml:"share_types"`
// RequiresFullScreen is the iOS package's UIRequiresFullScreen, true unless
// set; false lets an iPad run the app in Split View, Slide Over and Stage Manager.
RequiresFullScreen *bool `yaml:"requires_full_screen"`
// MultipleScenes is the iOS package's UIApplicationSupportsMultipleScenes,
// false unless set; true lets the system create more than one scene session.
MultipleScenes *bool `yaml:"multiple_scenes"`
// Orientations are the iPad's UISupportedInterfaceOrientations~ipad, of
// portrait, portrait_upside_down, landscape_left and landscape_right.
Orientations []string `yaml:"orientations"`
// AppGroup is the app group an iOS app shares with its widgets, group.<id> by
// default. Setting it explicitly with app_clip also shares persistent data
// and storage with the App Clip.
AppGroup string `yaml:"app_group"`
// SignInWithApple claims com.apple.developer.applesignin for iOS, tvOS and
// Mac App Store packages.
SignInWithApple bool `yaml:"sign_in_with_apple"`
// Purchases puts StoreKit's library into macOS, iOS and tvOS packages.
Purchases bool `yaml:"purchases"`
// ICloud configures Apple iCloud key-value store and ubiquity document
// containers; top-level cloud: is its provider-neutral alias.
ICloud CloudConfig `yaml:"icloud"`
// Privacy adds the app's required-reason APIs, tracking settings and
// collected data to PrivacyInfo.xcprivacy.
Privacy PrivacySettings `yaml:"privacy"`
}
AppleConfig is nsgo.yaml's apple section.
type AssetPack ¶
type AssetPack struct {
Name string `yaml:"name"`
Dir string `yaml:"dir"`
Delivery string `yaml:"delivery"`
}
AssetPack is one entry in mobile.asset_packs.
type BuildConfig ¶
type BuildConfig struct {
Output string `yaml:"output"`
Targets []string `yaml:"targets"`
LDFlags []string `yaml:"ldflags"`
Tags []string `yaml:"tags"`
ReleaseTags []string `yaml:"release_tags"`
Open *bool `yaml:"open"`
FPS any `yaml:"fps"`
Installers *bool `yaml:"installers"`
SkipInstallers []string `yaml:"skip_installers"`
Jobs int `yaml:"jobs"`
HarmonyosBundles string `yaml:"harmonyos_bundles"`
}
BuildConfig is nsgo.yaml's build section.
type CloudConfig ¶
CloudConfig configures cloud storage entitlements, such as Apple iCloud key-value store and ubiquity document containers.
type Command ¶
type Command struct {
Name string `yaml:"name"`
Package string `yaml:"package"`
LDFlags []string `yaml:"ldflags"`
}
Command is one of nsgo.yaml's commands shipped beside desktop executables.
type ComponentsConfig ¶
type ComponentsConfig struct {
Dir string `yaml:"dir"`
}
ComponentsConfig is nsgo.yaml's components section.
type Config ¶
type Config struct {
// Dir is the absolute directory containing nsgo.yaml.
Dir string `yaml:"-"`
Name string `yaml:"name"`
ID string `yaml:"id"`
Version string `yaml:"version"`
// Game covers the app's game classification and system Game Mode metadata.
Game bool `yaml:"game"`
// Gamepad declares support for an optional extended game controller.
Gamepad bool `yaml:"gamepad"`
// Copyright is the app's copyright notice, such as "© 2026 Example": its
// Windows executables' LegalCopyright and its installer's, and the
// NSHumanReadableCopyright of its macOS Info.plist, which the About panel shows.
Copyright string `yaml:"copyright"`
Licenses LicensePolicy `yaml:"licenses"`
// BuildNumber numbers builds of a version, as stores want each upload
// numbered: CFBundleVersion and Android's versionCode. Without it they come
// from Version.
BuildNumber int `yaml:"build_number"`
// Appearance starts the app light or dark whatever the system's, its launch
// screen and window included; empty follows the system.
Appearance string `yaml:"appearance"`
// LaunchScreen gives standalone iOS and Android apps their launch artwork.
LaunchScreen *LaunchScreen `yaml:"launch_screen"`
// Window is no longer nsgo.yaml's: Go code sizes windows.
Window any `yaml:"window"`
// Widget is the app's home-screen card on HarmonyOS: the title it shows.
Widget *Widget `yaml:"widget"`
// Icon names the app's icons; Load fills in the defaults under assets.
Icon Icons `yaml:"icon"`
Dev DevConfig `yaml:"dev"`
// Theme is a TSX app's theme file, relative to nsgo.yaml: a theme
// core.ParseTheme reads, NSGo's or a shadcn/ui one, which the compiler gives
// the app before it mounts.
Theme string `yaml:"theme"`
// Tailwind extends Tailwind's default theme for a TSX app's classes, as
// core.ParseTailwind reads it; the compiler checks it.
Tailwind yaml.Node `yaml:"tailwind"`
// Capabilities are what a TSX app's code may reach once signed into a
// package (nsgo publish), and under nsgo dev -limits.
Capabilities yaml.Node `yaml:"capabilities"`
// Registries maps @name prefixes to custom registry YAML URLs or paths
// relative to nsgo.yaml.
Registries yaml.Node `yaml:"registries"`
// StatusBar is a TSX app's default status bar on iOS and Android, under its
// pages' and dialogs': foreground (auto, light or dark) and hidden.
StatusBar yaml.Node `yaml:"status_bar"`
// I18n is the app's catalogs: Dir, relative to nsgo.yaml, holds a YAML file
// per language, Source's with every message. Their languages are the ones the
// app shows.
I18n I18nConfig `yaml:"i18n"`
// Components configures where copied components are placed: Dir, relative to
// nsgo.yaml, holds copies written by nsgo add (default: components).
Components ComponentsConfig `yaml:"components"`
// Web is the web target's configuration.
Web WebConfig `yaml:"web"`
// MiniProgram is the mini program targets' configuration.
MiniProgram MiniProgramConfig `yaml:"miniprogram"`
// Apple is the macOS and iOS targets' configuration.
Apple AppleConfig `yaml:"apple"`
// Cloud configures cloud storage entitlements, such as Apple iCloud key-value
// store and ubiquity containers.
Cloud CloudConfig `yaml:"cloud"`
// ICloud is a top-level alias for Cloud for Apple iCloud entitlements.
ICloud CloudConfig `yaml:"icloud"`
// FileTypes are the kinds of documents the app opens, which desktop and full
// iOS packages register.
FileTypes []FileType `yaml:"file_types"`
// URLSchemes are the schemes of the app's own links, which its desktop, iOS
// and Android packages register.
URLSchemes []string `yaml:"url_schemes"`
// AppLinks are the HTTPS hosts associated with the full app on iOS and
// Android; the app's server supplies their association files.
AppLinks []string `yaml:"app_links"`
// Commands are command-line programs the app's desktop packages ship beside
// its executable.
Commands []Command `yaml:"commands"`
// Widgets are the kinds of the app's widgets, which nsgo build puts into its
// macOS and iOS packages as a widget extension.
Widgets []WidgetKind `yaml:"widgets"`
// LiveActivities turns on the app's Live Activities, which the iOS widget
// extension draws and Android shows as notifications.
LiveActivities LiveActivities `yaml:"live_activities"`
// AppClip is the app's App Clip, which nsgo build nests in its iOS package.
AppClip *AppClip `yaml:"app_clip"`
// QuickLook is the app's macOS QuickLook Preview Extension
// (com.apple.quicklook.preview), embedded in Contents/PlugIns.
QuickLook *QuickLook `yaml:"quicklook"`
// QuickLookThumbnail is the app's macOS QuickLook Thumbnail Extension
// (com.apple.quicklook.thumbnail), embedded in Contents/PlugIns.
QuickLookThumbnail *QuickLook `yaml:"quicklook_thumbnail"`
// Android is the Android target's configuration.
Android AndroidConfig `yaml:"android"`
Compliance StoreCompliance `yaml:"compliance"`
// Harmonyos is the harmonyos target's configuration.
Harmonyos HarmonyConfig `yaml:"harmonyos"`
// MacOS is the macOS target's configuration.
MacOS MacOSConfig `yaml:"macos"`
// Windows is the Windows target's configuration.
Windows WindowsConfig `yaml:"windows"`
// Linux is the Linux target's configuration.
Linux LinuxConfig `yaml:"linux"`
// Releases is where the app is published.
Releases ReleaseConfig `yaml:"release"`
// Updates configures how the app updates.
Updates UpdatesConfig `yaml:"updates"`
Steam SteamConfig `yaml:"steam"`
// Store names where the app's text-based store listings live.
Store StoreConfig `yaml:"store"`
Itch ItchConfig `yaml:"itch"`
// Mobile is the iOS and Android targets' shared configuration.
Mobile MobileConfig `yaml:"mobile"`
Sign Signing `yaml:"sign"`
Build BuildConfig `yaml:"build"`
// contains filtered or unexported fields
}
Config is nsgo.yaml as the nsgo tool reads it: the same fields, YAML tags, validation and defaults.
func Load ¶
Load reads dir's nsgo.yaml strictly, refuses what nsgo build refuses with the same errors, and fills the documented defaults. Load makes no network or Git calls.
func (*Config) AllTargets ¶
AllTargets reports whether nsgo.yaml's build.targets listed "all" before target expansion.
func (*Config) BundleVersion ¶
BundleVersion is the build's number: BuildNumber when positive, else Version.
func (*Config) Channel ¶
Channel is the channel the builds are handed out through: updates.channel, else "direct" when updates.key is set, else "none".
func (*Config) DefaultID ¶
DefaultID reports whether ID was generated from Name because nsgo.yaml gave no id.
func (*Config) HotReload ¶
HotReload reports whether nsgo dev rebuilds the app on changes (true by default).
func (*Config) IOSHasIPadOrientations ¶
IOSHasIPadOrientations says whether the iOS package declares iPad orientations.
func (*Config) IOSRequiresFullScreen ¶
IOSRequiresFullScreen is the iOS package's UIRequiresFullScreen value.
func (*Config) IOSSupportsMultipleScenes ¶
IOSSupportsMultipleScenes is the iOS package's UIApplicationSupportsMultipleScenes value.
func (*Config) LinuxCategories ¶
LinuxCategories returns Linux.Categories, adding "Game" when Game is true.
func (*Config) MacOSCategory ¶
MacOSCategory returns the bundle's category, with Games as the default for a project marked as a game when neither macos.category nor apple.info.LSApplicationCategoryType is set.
func (*Config) OpenOutput ¶
OpenOutput reports whether nsgo build opens its output directory.
func (*Config) PackageSlug ¶
PackageSlug is what the files of an app's installers and its Linux packages are named by: its name in lowercase ASCII words joined by hyphens, else the last part of its ID for a name with no such words, else "app".
func (*Config) ParseCapabilities ¶
func (c *Config) ParseCapabilities() (*pkg.Capabilities, error)
ParseCapabilities reads nsgo.yaml's capabilities strictly, returning nil when it has none. YAML's keys are snake_case, the package's camelCase.
func (*Config) ParseRegistries ¶
ParseRegistries reads and validates nsgo.yaml's registries mapping strictly, returning entries sorted by Name, or nil when none are configured.
func (*Config) TagPrefix ¶
TagPrefix is what a release's tag adds before the version, "v" by default.
func (*Config) UpdatesAutomatic ¶
UpdatesAutomatic reports whether the app checks for updates on its own (true by default).
type DevConfig ¶
type DevConfig struct {
Target string `yaml:"target"`
// Icon replaces Icon in nsgo dev's builds, field by field.
Icon Icons `yaml:"icon"`
// HotReload rebuilds and restarts the app when a watched file changes; it
// defaults to true.
HotReload *bool `yaml:"hot_reload"`
// FPS is no longer nsgo.yaml's: apps take --nsgo-fps.
FPS any `yaml:"fps"`
}
DevConfig is nsgo.yaml's dev section.
type FileType ¶
type FileType struct {
// Name is what the Finder, Explorer and Linux file managers call such a file.
Name string `yaml:"name"`
Extensions []string `yaml:"extensions"`
// MIME names existing media types.
MIME []string `yaml:"mime"`
// ID is its uniform type identifier: <app id>.<first extension> by default.
ID string `yaml:"id"`
// Icon is an .icns or a square PNG for its macOS files, relative to nsgo.yaml.
Icon string `yaml:"icon"`
// Role is editor, the default, or viewer.
Role string `yaml:"role"`
// Conforms are the types it is a kind of: public.data by default.
Conforms []string `yaml:"conforms"`
}
FileType is a kind of document the app opens, registered by desktop and iOS packages.
type GooglePlayCompliance ¶
type GooglePlayCompliance struct {
DataSafety *bool `yaml:"data_safety"`
}
GooglePlayCompliance holds Google Play questionnaire progress.
type HarmonyConfig ¶
type HarmonyConfig struct {
Permissions []string `yaml:"permissions"`
Signing *HarmonySigning `yaml:"signing"`
}
HarmonyConfig is nsgo.yaml's harmonyos section.
type HarmonySigning ¶
type HarmonySigning struct {
Keystore string `yaml:"keystore"`
KeyAlias string `yaml:"key_alias"`
Certificate string `yaml:"certificate"`
Profile string `yaml:"profile"`
}
HarmonySigning names the AppGallery Connect materials for a HarmonyOS HAP. Paths are relative to the app's nsgo.yaml unless absolute.
type I18nConfig ¶
type I18nConfig struct {
Dir string `yaml:"dir"`
Source string `yaml:"source"`
// Coverage is warn (default) or off for dependency translations.
Coverage string `yaml:"coverage"`
}
I18nConfig is nsgo.yaml's i18n section.
type Icons ¶
type Icons struct {
// Apple is an Icon Composer .icon for macOS, iOS and an Apple Watch without
// an icon of its own, or an .icns for macOS.
Apple string `yaml:"apple"`
// PNG is the shared square-image fallback for targets without their own
// artwork, including Apple targets Apple does not cover.
PNG string `yaml:"png"`
// Windows and Linux replace PNG for their packages, store assets and installers.
Windows string `yaml:"windows"`
Linux string `yaml:"linux"`
// TVOS is the Apple TV's: Xcode's .brandassets with its layered icon and top
// shelf images, or a wide image that fills them. Without it the PNG layers as
// the app icon and top shelf images.
TVOS string `yaml:"tvos"`
// WatchOS is the Apple Watch's: an Icon Composer .icon drawn in circles, or a
// square image. Without it Apple is used, then PNG.
WatchOS string `yaml:"watchos"`
// Android is the adaptive launcher icon's foreground, background and optional
// themed monochrome layer.
Android *AndroidIcon `yaml:"android"`
}
Icons names an app's icon files across platforms.
type ItchConfig ¶
type ItchConfig struct {
Project string `yaml:"project"`
Channels map[string]string `yaml:"channels"`
}
ItchConfig is nsgo.yaml's itch section.
type LaunchAppearance ¶
LaunchAppearance is one appearance's launch screen background color and image.
func (LaunchAppearance) Color ¶
func (a LaunchAppearance) Color() uint32
Color returns Background as an opaque ARGB uint32 (0xFFRRGGBB), or 0 when Background is unset or not a valid #RRGGBB color.
type LaunchScreen ¶
type LaunchScreen struct {
LaunchAppearance `yaml:",inline"`
Dark LaunchAppearance `yaml:"dark"`
}
LaunchScreen configures standalone iOS and Android launch screen artwork.
type LicensePolicy ¶
type LicensePolicy struct {
Unknown string `yaml:"unknown"`
Copyleft string `yaml:"copyleft"`
Allow []string `yaml:"allow"`
}
LicensePolicy configures third-party license notice checks during builds.
type LinuxConfig ¶
type LinuxConfig struct {
Categories []string `yaml:"categories"`
AppImageUpdate *string `yaml:"appimage_update"`
Maintainer string `yaml:"maintainer"`
Summary string `yaml:"summary"`
License string `yaml:"license"`
FlatpakRuntime string `yaml:"flatpak_runtime"`
Depends LinuxDeps `yaml:"depends"`
Recommends LinuxDeps `yaml:"recommends"`
}
LinuxConfig is nsgo.yaml's linux section.
type LiveActivities ¶
type LiveActivities struct {
Enabled bool `yaml:"enabled"`
FrequentUpdates bool `yaml:"frequent_updates"`
}
LiveActivities is nsgo.yaml's live_activities section.
type MacOSConfig ¶
type MacOSConfig struct {
DMGBackground string `yaml:"dmg_background"`
DMGIcon string `yaml:"dmg_icon"`
Category string `yaml:"category"`
Entitlements map[string]any `yaml:"entitlements"`
}
MacOSConfig is nsgo.yaml's macos section.
type MiniProgramConfig ¶
type MiniProgramConfig struct {
AppID map[string]string `yaml:"appid"`
WeChatSpeechPlugin string `yaml:"wechat_speech_plugin"`
}
MiniProgramConfig is nsgo.yaml's miniprogram section.
type MobileConfig ¶
type MobileConfig struct {
ExcludeResources []string `yaml:"exclude_resources"`
AssetPacks []AssetPack `yaml:"asset_packs"`
}
MobileConfig is nsgo.yaml's mobile section.
type PrivacySettings ¶
type PrivacySettings struct {
AccessedAPIs map[string][]string `yaml:"accessed_apis"`
CollectedData []map[string]any `yaml:"collected_data"`
Tracking *bool `yaml:"tracking"`
TrackingDomains []string `yaml:"tracking_domains"`
}
PrivacySettings holds Apple PrivacyInfo.xcprivacy declarations.
type QuickLook ¶
type QuickLook struct {
// Main is the Go main package path of the extension, such as
// ./cmd/quicklook.
Main string `yaml:"main"`
// ID is the extension's bundle identifier: <app id>.quicklook for the
// preview and <app id>.thumbnail for the thumbnail by default.
ID string `yaml:"id"`
// Types are the UTIs the extension previews or draws thumbnails of
// (QLSupportedContentTypes).
// When omitted, all UTIs declared in file_types are used.
Types []string `yaml:"types"`
}
QuickLook is nsgo.yaml's quicklook and quicklook_thumbnail sections: a macOS QuickLook Preview Extension (com.apple.quicklook.preview) or Thumbnail Extension (com.apple.quicklook.thumbnail) embedded in Contents/PlugIns.
type Registry ¶
type Registry struct {
Name string // prefixed with '@', e.g. "@acme"
Raw string // URL or relative path as written in nsgo.yaml
URL string // non-empty for remote registries
Path string // absolute path on disk for local file registries
Line int // line in nsgo.yaml
}
Registry is one custom registry entry declared under nsgo.yaml's registries map.
type ReleaseConfig ¶
ReleaseConfig is nsgo.yaml's release section.
type Signing ¶
type Signing struct {
Identity string `yaml:"identity"`
Profile string `yaml:"profile"`
WatchProfile string `yaml:"watch_profile"`
WidgetsProfile string `yaml:"widgets_profile"`
AssetPacksProfile string `yaml:"asset_packs_profile"`
ClipProfile string `yaml:"clip_profile"`
QuickLookProfile string `yaml:"quicklook_profile"`
// QuickLookThumbnailProfile signs the Mac App Store QuickLook thumbnail extension.
QuickLookThumbnailProfile string `yaml:"quicklook_thumbnail_profile"`
MacOSProfile string `yaml:"macos_profile"`
Installer string `yaml:"installer"`
Keystore string `yaml:"keystore"`
KeyAlias string `yaml:"key_alias"`
Notarize string `yaml:"notarize"`
Certificate string `yaml:"certificate"`
SignCommand string `yaml:"sign_command"`
TimestampURL string `yaml:"timestamp_url"`
}
Signing is nsgo.yaml's sign section: what release packages are signed with.
type SteamCompliance ¶
type SteamCompliance struct {
ContentSurvey *bool `yaml:"content_survey"`
}
SteamCompliance holds Steamworks questionnaire progress.
type SteamConfig ¶
type SteamConfig struct {
// AppID is the Steamworks App ID for native development outside Steam.
AppID uint32 `yaml:"app_id"`
}
SteamConfig is nsgo.yaml's steam section.
type StoreCompliance ¶
type StoreCompliance struct {
AppStore AppStoreCompliance `yaml:"app_store"`
GooglePlay GooglePlayCompliance `yaml:"google_play"`
Steam SteamCompliance `yaml:"steam"`
}
StoreCompliance records whether the app's store questionnaires are complete.
type StoreConfig ¶
type StoreConfig struct {
// Dir is the directory holding listing.yaml and per-locale directories,
// relative to nsgo.yaml (default: "store" in publish commands).
Dir string `yaml:"dir"`
}
StoreConfig is nsgo.yaml's store section: where store listing files live.
type UpdatesConfig ¶
type UpdatesConfig struct {
Key string `yaml:"key"`
Feed string `yaml:"feed"`
Automatic *bool `yaml:"automatic"`
AutomaticDownloads bool `yaml:"automatic_downloads"`
Channel string `yaml:"channel"`
}
UpdatesConfig is nsgo.yaml's updates section.
type WebConfig ¶
type WebConfig struct {
Host string `yaml:"host"`
Offline bool `yaml:"offline"`
// Base fixes assets to an absolute deployment path for deep links.
Base string `yaml:"base"`
// Storage is localstorage (default) or indexeddb.
Storage string `yaml:"storage"`
}
WebConfig is nsgo.yaml's web section.
type Widget ¶
type Widget struct {
Title string `yaml:"title"`
}
Widget is an app's home-screen card on HarmonyOS: what its 2x2 card says.
type WidgetKind ¶
type WidgetKind struct {
Kind string `yaml:"kind"`
Name string `yaml:"name"`
Description string `yaml:"description"`
Families []string `yaml:"families"`
}
WidgetKind is a kind of the app's widgets in nsgo.yaml.
type WindowsConfig ¶
type WindowsConfig struct {
CommandLine bool `yaml:"command_line"`
Path bool `yaml:"path"`
Publisher string `yaml:"publisher"`
InstallerIcon string `yaml:"installer_icon"`
UninstallerIcon string `yaml:"uninstaller_icon"`
DeviceCapabilities []string `yaml:"device_capabilities"`
Store WindowsStoreConfig `yaml:"store"`
}
WindowsConfig is nsgo.yaml's windows section.
type WindowsStoreConfig ¶
type WindowsStoreConfig struct {
Identity string `yaml:"identity"`
Publisher string `yaml:"publisher"`
PublisherName string `yaml:"publisher_name"`
}
WindowsStoreConfig is the Microsoft Store package identity in windows.store.