Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ jobs:
name: nexa-cli_windows_${{ matrix.arch }}
path: artifacts


- name: Build launcher with PyInstaller
- name: Build launcher
run: |
pip install pyinstaller
pyinstaller --onefile --noconsole --distpath artifacts --name "nexa-cli-launcher" --icon="runner/release/windows/nexa_logo.ico" runner/release/windows/nexa_launcher.py
cd runner/release/windows
windres resource.rc launcher.syso
go build -ldflags "-H windowsgui" -o ../../../artifacts/nexa-cli-launcher.exe

- name: Sign executables with AzureSignTool
shell: pwsh
Expand Down
14 changes: 14 additions & 0 deletions runner/release/windows/launcher.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//go:build windows

package main

import (
"os/exec"
"syscall"
)

func main() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this merge to nexa-launcher?

cmd := exec.Command("cmd", "/c", "start", "powershell", "-NoProfile", "-NoExit", "-Command", "nexa")
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
_ = cmd.Start()
}
9 changes: 0 additions & 9 deletions runner/release/windows/nexa_launcher.py

This file was deleted.

1 change: 1 addition & 0 deletions runner/release/windows/resource.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 ICON "nexa_logo.ico"