Skip to content

Commit 29112c8

Browse files
committed
Latest release: version 3.5.10
This update includes robust compiler security and installation logic to ensure smooth operation on standard Linux systems. 1. Compiler updates global scan for C & Go. 2. Rootmap setup location points to the root folder. 3. Setup updates minimize bugs and errors during initial installation. 4. Wrapper logic updates to a more specialized and stable version when run globally.
1 parent 2d43465 commit 29112c8

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

compiler

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,37 @@ compile_modules() {
1313
cd "$BASE_PATH" || return 1
1414
fi
1515

16-
# --- BAGIAN GOLANG ---
16+
# --- SEMUA GOLANG DI SELURUH PROJECT ---
1717
if command -v go > /dev/null; then
1818
[ -f "go.mod" ] && rm go.mod
1919

20-
echo -e "[*] Initializing Go modules."
20+
echo -e "[*] Initializing Go modules globally."
2121
go mod init github.com/storm-os/storm-framework
2222

23-
echo -e "\n[*] Downloading dependencies."
23+
echo -e "[*] Syncing dependencies."
2424
go get github.com/google/gopacket@latest
2525
go get github.com/google/gopacket/pcap@latest
2626
go mod tidy
2727

28-
find modules/ -name "*.go" | while read -r src; do
28+
find . -name "*.go" -not -path "*/.*" -not -path "*/vendor/*" | while read -r src; do
2929
output="${src%.go}"
30+
echo -e "[+] Compiling Go module: $src"
3031
CGO_ENABLED=1 go build -mod=mod -o "$output" "$src"
3132
chmod +x "$output"
32-
3333
done
3434
fi
3535

36-
# --- LOGIKA C ---
36+
# --- SEMUA C DI SELURUH PROJECT ---
3737
if command -v gcc > /dev/null; then
38-
find modules/ -name "*.c" | while read -r src; do
38+
find . -name "*.c" -not -path "*/.*" | while read -r src; do
3939
output="${src%.c}"
40-
41-
echo -e "[*] Initializing C modules."
40+
echo -e "[+] Compiling C module: $src"
4241
if grep -q "pcap.h" "$src"; then
4342
gcc "$src" -o "$output" -lpcap
4443
else
4544
gcc "$src" -o "$output"
4645
fi
4746
chmod +x "$output"
48-
4947
done
5048
fi
5149
}

setup

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ if [ -f "$INSTALL_DIR/requirements.txt" ]; then
112112

113113
if [ $? -ne 0 ]; then
114114
echo -e "${RED}[x] ERROR: Failed to install Python dependencies.${NC}"
115-
# Optional: Don't immediately exit if it fails, just give a warning.
116115
fi
117116
fi
118117

@@ -125,8 +124,13 @@ COMPILER_SRC="./compiler"
125124

126125
if [ -f "$COMPILER_SRC" ]; then
127126
echo -e "[*] Run binary compilation."
128-
. "$COMPILER_SRC"
129-
compile_modules
127+
if $NEEDS_SUDO; then
128+
sudo bash -c "export NEEDS_SUDO=true; . $COMPILER_SRC; compile_modules"
129+
else
130+
. "$COMPILER_SRC"
131+
compile_modules
132+
fi
133+
cd "$INSTALL_DIR" || { echo -e "${RED}[x] ERROR: Lost track of directory!${NC}"; exit 1; }
130134
else
131135
echo -e "${RED}[x] ERROR: File compiler not found in $(pwd)!"
132136
echo -e "${RED}[!] Make sure the file exists in the project directory."

versi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "3.5.9"
1+
VERSION = "3.5.10"

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.9
1+
3.5.10

0 commit comments

Comments
 (0)