mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-19 23:31:25 +02:00
This commit pushes as much of the generation logic as possible to the derive-ahk crate, so that when it is used in komorebic, we only need to do an as_bytes() call to prepare it for being written to a file. Besides that, this commit changes the generation command name to 'ahk-library' for clarity, and adds both additional samples and instructions in the readme file and Scoop post-install hook.
61 lines
1.9 KiB
YAML
61 lines
1.9 KiB
YAML
# Adapted from https://jondot.medium.com/shipping-rust-binaries-with-goreleaser-d5aa42a46be0
|
|
project_name: komorebi
|
|
|
|
before:
|
|
hooks:
|
|
- powershell.exe -Command "New-Item -Path . -Name dummy.go -ItemType file -Force"
|
|
- powershell.exe -Command "Add-Content -Path .\dummy.go -Value 'package main'"
|
|
- powershell.exe -Command "Add-Content -Path .\dummy.go -Value 'func main() {}'"
|
|
|
|
builds:
|
|
- id: komorebi
|
|
main: dummy.go
|
|
goos: ["windows"]
|
|
goarch: ["amd64"]
|
|
binary: komorebi
|
|
hooks:
|
|
post:
|
|
- mkdir -p dist/windows_amd64
|
|
- cp ".\target\x86_64-pc-windows-msvc\release\komorebi.exe" ".\dist\komorebi_windows_amd64\komorebi.exe"
|
|
- id: komorebic
|
|
main: dummy.go
|
|
goos: ["windows"]
|
|
goarch: ["amd64"]
|
|
binary: komorebic
|
|
hooks:
|
|
post:
|
|
- mkdir -p dist/windows_amd64
|
|
- cp ".\target\x86_64-pc-windows-msvc\release\komorebic.exe" ".\dist\komorebic_windows_amd64\komorebic.exe"
|
|
|
|
archives:
|
|
- replacements:
|
|
windows: pc-windows-msvc
|
|
amd64: x86_64
|
|
format: zip
|
|
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}-{{ .Os }}"
|
|
files:
|
|
- LICENSE
|
|
- komorebi.sample.ahk
|
|
- CHANGELOG.md
|
|
|
|
checksum:
|
|
name_template: checksums.txt
|
|
|
|
changelog:
|
|
sort: asc
|
|
|
|
scoop:
|
|
bucket:
|
|
owner: LGUG2Z
|
|
name: komorebi-bucket
|
|
token: "{{ .Env.SCOOP_TOKEN }}"
|
|
homepage: https://github.com/LGUG2Z/komorebi
|
|
description: A tiling window manager for Windows
|
|
license: MIT
|
|
pre_install:
|
|
- if (Get-Process -Name komorebi -ErrorAction SilentlyContinue) { komorebic stop }
|
|
post_install:
|
|
- Write-Host "`nRun 'cp $original_dir\komorebi.sample.ahk $Env:UserProfile\komorebi.ahk' to get started with the sample configuration"
|
|
- Write-Host "`nRun 'komorebic ahk-library' if you would like to generate an AHK helper library to use in your configuration"
|
|
- Write-Host "`nOnce you have a configuration file in place, you can run 'komorebic start' to start the window manager"
|