Open kiengk0eng opened 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.
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.
If you can send me the DEB to silicahelp [at] shuga [dot] co
, I'll take a closer look and look to fix this.
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.
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