EzPack Crossplatform packer

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Piero
Addict
Addict
Posts: 1163
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: EzPack Crossplatform packer

Post by Piero »

Thanks Idle!

PS
Bug:

Code: Select all

CompilerIf #PB_OS_Windows ; always true
; Should be:
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
Also, on Mac:
/Resources/examples/3d/Demos/Tank.pb
NOT:
/purebasic/Examples/3D/Demos/Tank.pb
User avatar
idle
Always Here
Always Here
Posts: 6130
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: EzPack Crossplatform packer

Post by idle »

Piero wrote: Mon Nov 10, 2025 10:19 pm Thanks Idle!

PS
Bug:

Code: Select all

CompilerIf #PB_OS_Windows ; always true
; Should be:
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
Also, on Mac:
/Resources/examples/3d/Demos/Tank.pb
NOT:
/purebasic/Examples/3D/Demos/Tank.pb
Thanks, I've added the changes and added it to github.
can you check the examples work on mac.
User avatar
Piero
Addict
Addict
Posts: 1163
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: EzPack Crossplatform packer

Post by Piero »

idle wrote: Mon Nov 10, 2025 10:38 pm can you check the examples work on mac.
Seems all OK now :D
The only thing was that I had to set to Console (no "; ExecutableFormat = Console") :)
User avatar
idle
Always Here
Always Here
Posts: 6130
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: EzPack Crossplatform packer

Post by idle »

Thanks for the clarification
User avatar
Piero
Addict
Addict
Posts: 1163
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: EzPack Crossplatform packer

Post by Piero »

zPack_6_ExtractSelectedFilesToMemory.pb
pack\OpenFile has problems:

[ERROR] EzPack.pbi (Line: 963)
[ERROR] AllocateMemory(): Can't allocate a memory block of size 0.

Edit: seems it's because, with my settings (tmp exe in source directory) I need 2 tpak.ezp: 1 in sources folder and 1 in home folder (to successfully test all examples)

Edit2: it's not because of tmp exe in source directory, it's because of IncludeBinary "tpak.ezp" :oops:
THANKS again!
User avatar
idle
Always Here
Always Here
Posts: 6130
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: EzPack Crossplatform packer

Post by idle »

Umm yes I tried make it clear in the read me, you need to run the 1st example to create the tpak.ezp I didn't really spend any time considering the compiler settings.
User avatar
skinkairewalker
Addict
Addict
Posts: 824
Joined: Fri Dec 04, 2015 9:26 pm

Re: EzPack Crossplatform packer

Post by skinkairewalker »

It would be interesting to add password protection.
User avatar
idle
Always Here
Always Here
Posts: 6130
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: EzPack Crossplatform packer

Post by idle »

skinkairewalker wrote: Fri Dec 19, 2025 1:18 am It would be interesting to add password protection.
It's not really of much use when it's embedded in your exe and its not so easy to add
User avatar
skinkairewalker
Addict
Addict
Posts: 824
Joined: Fri Dec 04, 2015 9:26 pm

Re: EzPack Crossplatform packer

Post by skinkairewalker »

idle wrote: Fri Dec 19, 2025 5:17 am and its not so easy to add
I’m seeing that it’s hard in practice xD
viewtopic.php?t=87904

I’m trying to embed ezPack into my server code, but I’m having problems. I believe it’s due to my ‘poorly written and beginner’ server code.
Could you tell me what I should do in Procedure ProcessRequest(*req.client) to make reading files with ezPack via memory work?
miso
Enthusiast
Enthusiast
Posts: 622
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: EzPack Crossplatform packer

Post by miso »

skinkairewalker wrote: Fri Dec 19, 2025 5:45 am
idle wrote: Fri Dec 19, 2025 5:17 am and its not so easy to add
I’m seeing that it’s hard in practice xD
viewtopic.php?t=87904

I’m trying to embed ezPack into my server code, but I’m having problems. I believe it’s due to my ‘poorly written and beginner’ server code.
Could you tell me what I should do in Procedure ProcessRequest(*req.client) to make reading files with ezPack via memory work?
Pb has a wast amount of cypher capabilities. You can cypher the files that go into the zip.
User avatar
idle
Always Here
Always Here
Posts: 6130
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: EzPack Crossplatform packer

Post by idle »

skinkairewalker wrote: Fri Dec 19, 2025 5:45 am
idle wrote: Fri Dec 19, 2025 5:17 am and its not so easy to add
I’m seeing that it’s hard in practice xD
viewtopic.php?t=87904

I’m trying to embed ezPack into my server code, but I’m having problems. I believe it’s due to my ‘poorly written and beginner’ server code.
Could you tell me what I should do in Procedure ProcessRequest(*req.client) to make reading files with ezPack via memory work?
You have the source for atomic webserver it does it already.
User avatar
skinkairewalker
Addict
Addict
Posts: 824
Joined: Fri Dec 04, 2015 9:26 pm

Re: EzPack Crossplatform packer

Post by skinkairewalker »

idle wrote: Fri Dec 19, 2025 7:22 pm You have the source for atomic webserver it does it already.
The only reason I can't use Atomic Web Server 3 right now is that I can't run it on Mac/Linux.

this code works on Windows, Linux & Mac .
but with some error with stress test
viewtopic.php?t=88089
User avatar
idle
Always Here
Always Here
Posts: 6130
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: EzPack Crossplatform packer

Post by idle »

skinkairewalker wrote: Mon Dec 22, 2025 9:59 pm
idle wrote: Fri Dec 19, 2025 7:22 pm You have the source for atomic webserver it does it already.
The only reason I can't use Atomic Web Server 3 right now is that I can't run it on Mac/Linux.
I no longer have a mac to test it on but it was working on linux.
Post Reply