Shugabuga / Silica

A static site generator for MobileAPT repos.
https://silica.shuga.co/
Other
160 stars 38 forks source link

Script file #18

Open kiengk0eng opened 4 years ago

kiengk0eng commented 4 years ago

I tried your silica and I found an error in the script file if I installed the deb file. I found the script file outside the debian folder, can you fix it so that the script file is no longer outside the debian folder?

Thanks

Shugabuga commented 4 years ago

What script file are you referring to, pre/postint files that?

Silica formats files a bit differently internally. We use a scripts folder inside of a silica_data to store pre/postint files. The contents of silica_data/scripts/ are put into the DEB properly when exported and silica_data's contents are never put inside the DEB.

Randomblock1 commented 4 years ago

I think I know what they mean, I ran into it too. I have a premade DEB that contains scripts in the DEBIAN folder, and really I just want to use Silica 'cause it looks nice, although the packaging feature is neat. However, instead of taking the scripts from DEBIAN and keeping them there, they get moved to the root directory of the DEB.

Basically what should happen is it shouldn't move any files and keep them in DEBIAN, but Silica as it is doesn't do this.

Shugabuga commented 4 years ago

If you can send me the DEB to silicahelp [at] shuga [dot] co, I'll take a closer look and look to fix this.

sgtaziz commented 3 years ago

I'm actually running into the same issue. The scripts generated are stored inside data. So, when installing a DEB file generated by Silica, on my device postinst/preinst will exist in the root (/) directory of the device.

Replicating it is simple. If you have a .deb file with scripts in the DEBIAN directory, this will happen when it is re-packaged by Silica.