Move portmaster binary to cmds/portmaster-core

This commit is contained in:
Patrick Pacher 2020-07-17 12:13:13 +02:00
parent 3428035dd4
commit cef2a4e9be
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D
7 changed files with 21 additions and 14 deletions

7
cmds/portmaster-core/.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
# Compiled binaries
portmaster
portmaster.exe
dnsonly
dnsonly.exe
main
main.exe

View file

@ -7,7 +7,7 @@ COL_OFF="\033[00m"
COL_BOLD="\033[01;01m" COL_BOLD="\033[01;01m"
COL_RED="\033[31m" COL_RED="\033[31m"
destDirPart1="dist" destDirPart1="../../dist"
destDirPart2="core" destDirPart2="core"
function check { function check {

View file

@ -7,7 +7,7 @@ COL_OFF="\033[00m"
COL_BOLD="\033[01;01m" COL_BOLD="\033[01;01m"
COL_RED="\033[31m" COL_RED="\033[31m"
destDirPart1="../dist" destDirPart1="../../dist"
destDirPart2="start" destDirPart2="start"
function check { function check {

View file

@ -46,7 +46,7 @@ func downloadUpdates() error {
"all/ui/modules/base.zip", "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 // the root command but since we don't use run.Run() we need to start
// logging ourself. // logging ourself.
err := log.Start() err := log.Start()

22
pack
View file

@ -5,12 +5,19 @@ cd "$baseDir"
# first check what will be built # 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 ""
echo "pack list:" echo "pack list:"
echo "" echo ""
./pmctl/pack check packAll check
./pack_core check
# confirm # confirm
@ -20,15 +27,8 @@ echo ""
# build # build
./pmctl/pack build set -e
if [[ $? -ne 0 ]]; then packAll build
exit 1
fi
./pack_core build
if [[ $? -ne 0 ]]; then
exit 1
fi
echo "" echo ""
echo "finished packing." echo "finished packing."