Skip to content

Commit 4a67994

Browse files
authored
Update Makefile
1 parent ec4e697 commit 4a67994

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

luci-app-peditxos/Makefile

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ include $(TOPDIR)/feeds/luci/luci.mk
66

77
# --- Package Information ---
88
PKG_NAME:=luci-app-peditxos
9-
PKG_VERSION:=65
10-
PKG_RELEASE:=3
9+
PKG_VERSION:=66
10+
PKG_RELEASE:=1
1111
PKG_MAINTAINER:=PeDitX <telegram: @PeDitX>
1212

1313
# --- LuCI Configuration ---
@@ -23,10 +23,7 @@ LUCI_DEPENDS:= \
2323
+coreutils \
2424
+coreutils-base64 \
2525
+coreutils-nohup \
26-
+wget \
27-
+luci-theme-peditx \
28-
+luci-theme-carbonpx \
29-
+luci-app-themeswitch
26+
+wget
3027

3128
# --- Package Definition ---
3229
define Package/luci-app-peditxos
@@ -42,7 +39,7 @@ define Package/luci-app-peditxos/description
4239
Includes Passwall installers, DNS changers, service managers, and system optimizations.
4340
endef
4441

45-
# --- *** FIX: Correctly install files with proper permissions *** ---
42+
# --- Installation Rules ---
4643
# This section tells the build system how to install your files into the package.
4744
define Package/luci-app-peditxos/install
4845
# Install LuCI controller and view files
@@ -54,16 +51,9 @@ define Package/luci-app-peditxos/install
5451
$(INSTALL_BIN) ./root/usr/bin/peditx_runner.sh $(1)/usr/bin/
5552
endef
5653

57-
# This tells the build system to include the post-install and pre-removal scripts
58-
define Package/luci-app-peditxos/postinst
59-
$(INSTALL_DIR) $(1)/etc/uci-defaults
60-
$(INSTALL_BIN) ./control/postinst $(1)/etc/uci-defaults/99-luci-app-peditxos
61-
endef
62-
63-
define Package/luci-app-peditxos/prerm
64-
$(CP) ./control/prerm $(1)/prerm
65-
endef
54+
# By removing the 'define Package/.../postinst' and 'prerm' blocks,
55+
# the build system will automatically pick up the scripts from the 'control/' directory.
56+
# This is the standard and correct way.
6657

6758
# --- Finalize Package ---
6859
$(eval $(call BuildPackage,$(PKG_NAME)))
69-

0 commit comments

Comments
 (0)