mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-04-28 03:32:27 +00:00
* 🎨 Split off cli into separate binaries This commit splits off the cli into 3 binaries: - agent - cli - provider The provider now is a separate component that can be tested by itself and have its own lifecycle. This paves the way to a ligher c3os variant, HA support and other features that can be provided on runtime. This is working, but still there are low hanging fruit to care about. Fixes #14 * 🤖 Add provider bin to releases * ⚙️ Handle signals * ⚙️ Reduce buildsize footprint * 🎨 Scan for providers also in /system/providers * 🤖 Run goreleaser * 🎨 Refactoring
37 lines
706 B
Bash
Executable File
37 lines
706 B
Bash
Executable File
#/bin/sh
|
|
|
|
if [ -z "$GOPATH" ]; then
|
|
echo GOPATH environment variable not set
|
|
exit
|
|
fi
|
|
|
|
if [ ! -e "$GOPATH/bin/2goarray" ]; then
|
|
echo "Installing 2goarray..."
|
|
go get github.com/cratonica/2goarray
|
|
if [ $? -ne 0 ]; then
|
|
echo Failure executing go get github.com/cratonica/2goarray
|
|
exit
|
|
fi
|
|
fi
|
|
|
|
if [ -z "$1" ]; then
|
|
echo Please specify a PNG file
|
|
exit
|
|
fi
|
|
|
|
if [ ! -f "$1" ]; then
|
|
echo $1 is not a valid file
|
|
exit
|
|
fi
|
|
|
|
OUTPUT=iconunix.go
|
|
echo Generating $OUTPUT
|
|
echo "//+build linux darwin" > $OUTPUT
|
|
echo >> $OUTPUT
|
|
cat "$1" | $GOPATH/bin/2goarray banner main >> $OUTPUT
|
|
if [ $? -ne 0 ]; then
|
|
echo Failure generating $OUTPUT
|
|
exit
|
|
fi
|
|
echo Finished
|