app

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AppDir 应用根目录
	AppDir string // 应用根目录
	// ConfDir 配置文件目录
	ConfDir string // 配置目录
	// LogDir 日志目录
	LogDir string // 日志目录
	// AppConfig 配置文件
	AppConfig string // 应用配置文件
	// Installed 应用是否已安装
	Installed bool // 应用是否安装过
	// Setting 应用配置
	Setting *setting.Setting // 应用配置
	// VersionId 版本号
	VersionId int // 版本号
	// VersionFile 版本文件
	VersionFile string // 版本号文件
)

Functions

func CreateInstallLock

func CreateInstallLock() error

CreateInstallLock 创建安装锁文件

func GetCurrentVersionId

func GetCurrentVersionId() int

GetCurrentVersionId 获取应用当前版本号, 从版本号文件中读取

func InitEnv

func InitEnv(versionString string)

InitEnv 初始化

func IsInstalled

func IsInstalled() bool

IsInstalled 判断应用是否已安装

func ToNumberVersion

func ToNumberVersion(versionString string) int

ToNumberVersion 把字符串版本号a.b.c转换为整数版本号abc

func UpdateVersionFile

func UpdateVersionFile()

UpdateVersionFile 更新应用版本号文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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