Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script file #18

Open
kiengk0eng opened this issue Dec 31, 2019 · 4 comments
Open

Script file #18

kiengk0eng opened this issue Dec 31, 2019 · 4 comments
Labels
bug Something isn't working information requested

Comments

@kiengk0eng
Copy link

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 Shugabuga added the bug Something isn't working label Feb 29, 2020
@Shugabuga
Copy link
Owner

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
Copy link

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
Copy link
Owner

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
Copy link

sgtaziz commented Jan 31, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working information requested
Projects
None yet
Development

No branches or pull requests

4 participants