Commit Graph

134 Commits

Author SHA1 Message Date
0e8db8b40e Enhance permission handling in package installation and removal commands; add user management functions for improved security. Now for every time packets will execute lua scripts, it will change process euid to an unprivileged user; Now lua scripts can execute more lua default functions 2025-09-28 21:55:13 -03:00
3591460214 Update search command description for clarity 2025-09-28 17:55:52 -03:00
96db4572b4 Add list command to manage installed packages, and search to see all packages avaiable 2025-09-28 17:55:36 -03:00
17e1b4b3ab Refactor logging and variable names for consistency; update log messages for clarity 2025-09-28 17:24:17 -03:00
73171424e4 Update dependencies: remove indirect reference to gin-gonic and add new dependencies for go-cmp, assert, and testify 2025-09-28 17:24:02 -03:00
b4f55ad36f Fixing some huge bugs, and implemented remove function 2025-09-28 16:45:51 -03:00
2c322d4de8 progress doing remove cmd, and removing GetPackage function from the pkg package, now GetPackage function can be found on package utils 2025-09-27 00:39:49 -03:00
2735749b12 Added a function to read manifest from the file manifest.toml and not only from a package file 2025-09-23 19:12:08 -03:00
05fbbde194 Setting data_dir variable to lua scripts to a string with the package data folder 2025-09-23 19:11:11 -03:00
fe81e6bf22 Revert "setting data_dir variable to a string with the package data folder"
This reverts commit 2cfe78721a.
2025-09-23 19:09:50 -03:00
2cfe78721a setting data_dir variable to a string with the package data folder 2025-09-23 19:08:21 -03:00
ff986ef943 now InstallPackage function from packets package don't try to read a config.toml, it get the path to install by a param; added async dependency install process 2025-09-21 22:52:03 -03:00
f34308367e Implement UDP socket server and add package installation check utility 2025-09-21 10:34:49 -03:00
68b394523d Add ed25519 public key and enhance package installation error handling
- Embed ed25519 public key for signature verification when doing sync prcess with servidordomal.fun
- Improve error handling in AddToInstalledDB to rollback on failure
- Update InstallPackage function to accept io.Reader instead of *os.File
2025-09-20 21:55:34 -03:00
b14bd1806a Zipping html files 2025-09-20 20:18:20 -03:00
3929493bfb enhance package database schema and configuration; add dependencies 2025-09-20 19:31:38 -03:00
2620ec00ab implement package synchronization and validation; update database schema and add error handling 2025-09-20 19:12:01 -03:00
0485b8325f new index.db schema, removed likes and reports 2025-09-20 16:05:53 -03:00
33d636b41d go.mod and go.sum with some indirect packages 2025-09-20 16:05:31 -03:00
ac236342b6 added web/ with some html and updated go.mod and go.sum to use gin 2025-09-20 13:04:32 -03:00
910cad2734 deleting old schema 2025-09-20 11:04:08 -03:00
fdb21aacc5 added .Execute to run cobracmds 2025-09-20 11:02:35 -03:00
a22a2a70c0 Database schemas added 2025-09-20 11:02:09 -03:00
f5399a66ba new index.db schema 2025-09-20 08:51:01 -03:00
9e09b1e3a4 renamed DownloadPackageHTTP function to GetFileHTTP 2025-09-19 23:33:12 -03:00
f8bda68a57 Added a const to index.db 2025-09-19 23:32:50 -03:00
b84d43200a index.db schema 2025-09-19 23:32:32 -03:00
35cbc2e47c Created copydir and copyfile functions in utils, now lua os.copy can copy an entire directory 2025-09-19 22:18:34 -03:00
3a068ed90b InstallPackage from pkg running luascript hook 2025-09-18 20:47:08 -03:00
bdbc580c82 GetSandbox aded on package utils_lua, it returns lua.LState with all sandboxfunctions 2025-09-18 20:40:05 -03:00
3c770c469d better file organization 2025-09-18 20:12:07 -03:00
1c00df24a4 Added ask for lan function 2025-09-13 23:11:48 -03:00
f3ccd6d683 Clean Install function and Download function 2025-09-13 22:57:52 -03:00
8de2eaced7 Doing organization improvements 2025-09-13 22:24:04 -03:00
c0057ca053 Deleting all to rewrite better 2025-09-13 20:45:07 -03:00
61149ae711 Added description for GetPackageByMirror function 2025-09-08 22:23:15 -03:00
bf10e39ffc Merge branch 'main' of https://github.com/roboogg133/packets 2025-09-08 22:22:07 -03:00
379f640f33 added Install function description 2025-09-08 22:22:03 -03:00
c7b0555076 Update README.md 2025-09-07 11:11:14 -03:00
a3d18ed3d7 Created package.lua example 2025-09-03 22:45:41 -03:00
5c39f7ab2c making LANDeadline const, more readable 2025-09-03 22:43:25 -03:00
b676ea873e Setting a global variable on lua scripts to check if is running safely or not 2025-09-03 22:26:39 -03:00
b6a67b30c5 Creating table packages on installed.db if doesn't exists 2025-09-03 22:22:18 -03:00
c0a8922c2e Setting a const variable to default deadline for lan deadline 2025-09-02 13:14:35 -03:00
fad209d23c Moving it to the test branch 2025-08-20 15:34:04 -03:00
8dd6c68a15 Moving this packages to test branch 2025-08-20 15:33:39 -03:00
0c81469566 missed return in mkdir function 2025-08-20 15:33:12 -03:00
6775002886 sorry for adding this to main branch 2025-08-20 14:47:05 -03:00
bf1f967581 test 2025-08-20 14:31:23 -03:00
4a198d9056 Added build.compile and build.requirements to upgrade and install process [NEED TO BE TESTED ON LUA] 2025-08-20 13:41:37 -03:00