mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Move portmaster binary to cmds/portmaster-core
This commit is contained in:
parent
3428035dd4
commit
cef2a4e9be
7 changed files with 21 additions and 14 deletions
7
cmds/portmaster-core/.gitignore
vendored
Normal file
7
cmds/portmaster-core/.gitignore
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Compiled binaries
|
||||
portmaster
|
||||
portmaster.exe
|
||||
dnsonly
|
||||
dnsonly.exe
|
||||
main
|
||||
main.exe
|
|
@ -7,7 +7,7 @@ COL_OFF="\033[00m"
|
|||
COL_BOLD="\033[01;01m"
|
||||
COL_RED="\033[31m"
|
||||
|
||||
destDirPart1="dist"
|
||||
destDirPart1="../../dist"
|
||||
destDirPart2="core"
|
||||
|
||||
function check {
|
|
@ -7,7 +7,7 @@ COL_OFF="\033[00m"
|
|||
COL_BOLD="\033[01;01m"
|
||||
COL_RED="\033[31m"
|
||||
|
||||
destDirPart1="../dist"
|
||||
destDirPart1="../../dist"
|
||||
destDirPart2="start"
|
||||
|
||||
function check {
|
||||
|
|
|
@ -46,7 +46,7 @@ func downloadUpdates() error {
|
|||
"all/ui/modules/base.zip",
|
||||
)
|
||||
|
||||
// logging is configured as a presistent pre-run method inherited from
|
||||
// logging is configured as a persistent pre-run method inherited from
|
||||
// the root command but since we don't use run.Run() we need to start
|
||||
// logging ourself.
|
||||
err := log.Start()
|
||||
|
|
22
pack
22
pack
|
@ -5,12 +5,19 @@ cd "$baseDir"
|
|||
|
||||
# first check what will be built
|
||||
|
||||
function packAll() {
|
||||
for i in ./cmds/* ; do
|
||||
if [ -e $i/pack ]; then
|
||||
$i/pack $1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
echo ""
|
||||
echo "pack list:"
|
||||
echo ""
|
||||
|
||||
./pmctl/pack check
|
||||
./pack_core check
|
||||
packAll check
|
||||
|
||||
# confirm
|
||||
|
||||
|
@ -20,15 +27,8 @@ echo ""
|
|||
|
||||
# build
|
||||
|
||||
./pmctl/pack build
|
||||
if [[ $? -ne 0 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./pack_core build
|
||||
if [[ $? -ne 0 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
packAll build
|
||||
|
||||
echo ""
|
||||
echo "finished packing."
|
||||
|
|
Loading…
Add table
Reference in a new issue