Skip to content

Commit

Permalink
U: workflows gen cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Dec 10, 2024
1 parent 34a0af3 commit 4331d54
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/energy/compress-zip.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ zip -r energy-windows-32.zip energy-windows-32.exe
zip -r energy-windows-64.zip energy-windows-64.exe
zip -r energy-darwin-64.zip energy-darwin-64
zip -r energy-darwinarm-64.zip energy-darwinarm-64
zip -r energy-linux-32.zip energy-linux-32
zip -r energy-linux-64.zip energy-linux-64
zip -r energy-linuxarm.zip energy-linuxarm
zip -r energy-linuxarm-64.zip energy-linuxarm-64

pause
26 changes: 26 additions & 0 deletions cmd/internal/assets/assets_linux_386.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------

//go:build linux && 386
// +build linux,386

package assets

import (
"embed"
"io/fs"
)

//go:embed upx/upx-linux-386
var upx embed.FS

func UpxBytes() (fs.File, error) {
return upx.Open("upx/upx-linux-386")
}
26 changes: 26 additions & 0 deletions cmd/internal/assets/assets_linux_arm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------

//go:build linux && arm
// +build linux,arm

package assets

import (
"embed"
"io/fs"
)

//go:embed upx/upx-linux-arm
var upx embed.FS

func UpxBytes() (fs.File, error) {
return upx.Open("upx/upx-linux-arm")
}
Empty file.
Empty file.

0 comments on commit 4331d54

Please sign in to comment.