mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-20 15:51:32 +02:00
* feat(cli): autostart without a console window
This moves `komorebic` logic into a `lib.rs` file and calls it from `main.rs` (normal behavior) and then there is a second binary `komorebic-no-console` binary that uses `#![windows_subsystem = "windows"]` which tells the linker to not attach a console window to this binary.
* Revert "feat(cli): autostart without a console window"
This reverts commit 08494b46dd.
* feat(cli): autostart without a console window
This creates a second binary `komorebic-no-console` binary that uses `#![windows_subsystem = "windows"]` which tells the linker to not attach a console window to this binary and its only job is to run and pass its args to `komorebic`.
* add behind `--no-console` flag
* reference the new binary in wix
* remove no-console
* fix typo
51 lines
1.5 KiB
YAML
51 lines
1.5 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_v1\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_v1\komorebic.exe"
|
|
- id: komorebic-no-console
|
|
main: dummy.go
|
|
goos: ["windows"]
|
|
goarch: ["amd64"]
|
|
binary: komorebic-no-console
|
|
hooks:
|
|
post:
|
|
- mkdir -p dist/windows_amd64
|
|
- cp ".\target\x86_64-pc-windows-msvc\release\komorebic-no-console.exe" ".\dist\komorebic_no_console_windows_amd64_v1\komorebic-no-console.exe"
|
|
|
|
archives:
|
|
- name_template: "{{ .ProjectName }}-{{ .Version }}-x86_64-pc-windows-msvc"
|
|
format: zip
|
|
files:
|
|
- LICENSE
|
|
- CHANGELOG.md
|
|
|
|
checksum:
|
|
name_template: checksums.txt
|
|
|
|
changelog:
|
|
sort: asc
|