Windows 与 Linux 自托管软件商店部署
下载与你的服务器匹配的安装包
| 服务器系统 | 安装包 |
|---|---|
| Windows · x64 | licentivo-launch_0.3.4-beta_windows_amd64.zip |
| Windows · ARM64 | licentivo-launch_0.3.4-beta_windows_arm64.zip |
| Linux · x64 | licentivo-launch_0.3.4-beta_linux_amd64.tar.gz |
| Linux · ARM64 | licentivo-launch_0.3.4-beta_linux_arm64.tar.gz |
licentivo-launch_0.3.4-beta_source.zip · SHA256SUMS.txt · GitHub 源码
Windows 解压 ZIP,Linux 解压 tar.gz。进入包含 launch.exe 或 launch 的目录,再执行下面的命令。
launch init:首次生成配置
init 在当前目录创建 config.yaml,并生成需要长期保存的 master_key。它不会启动网站,也不会安装 MySQL。已有配置时不要重复初始化。
Windows · PowerShell
.\launch.exe init
notepad config.yamlLinux · Shell
./launch init
nano config.yaml把 database_dsn 改为实际数据库连接,并保留自动生成的 master_key:
launch:YOUR_DATABASE_PASSWORD@tcp(127.0.0.1:3306)/launch?parseTime=true&loc=UTC&charset=utf8mb4launch serve:运行网站服务
serve 读取当前目录的 config.yaml,连接 MySQL、维护应用表并启动商店与管理后台。它是前台进程,终端关闭或按下 Ctrl+C 后服务会停止。
Windows · PowerShell
.\launch.exe serveLinux · Shell
./launch serve默认打开 http://localhost:18080/#/login。以后启动只需在同一目录运行 serve,不用再次运行 init。
从源码构建(仅开发者需要)
修改服务端代码时需要 Go 1.26+ 与 Git;普通部署跳过本节。
git clone https://github.com/spf86/licentivo-launch.git
cd licentivo-launch
go build -trimpath -o launch ./cmd/launch
./launch init
# Edit database_dsn in config.yaml and keep master_key.
./launch serve