mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29: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_BOLD="\033[01;01m"
|
||||||
COL_RED="\033[31m"
|
COL_RED="\033[31m"
|
||||||
|
|
||||||
destDirPart1="dist"
|
destDirPart1="../../dist"
|
||||||
destDirPart2="core"
|
destDirPart2="core"
|
||||||
|
|
||||||
function check {
|
function check {
|
|
@ -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 {
|
||||||
|
|
|
@ -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
22
pack
|
@ -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."
|
||||||
|
|
Loading…
Add table
Reference in a new issue