platforms

package
v0.0.0-...-9e42fec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package platforms 平台相关在的打包方法

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(o *Options) error

Types

type Options

type Options struct {
	// Root 项目根目录
	Root string

	// Source 需要编译的源码目录
	//
	// 相对于 Root 的路径
	Source string

	// Output 编译后的输出目录
	//
	// 相对于 Root 的路径
	Output string

	// Icon 应用图标
	//
	// 一个尺寸足够大的 png 格式图片,相对于 Root 的路径。
	Icon string

	// Name 应用名称
	Name string

	// Version 应用版本
	Version string

	// ID 应用的唯一 ID
	ID string
}

Options 基本的打包选项

Directories

Path Synopsis
Package macos 用于打包 macOS 应用
Package macos 用于打包 macOS 应用
Package windows windows 平台实现
Package windows windows 平台实现

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL