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

node-deb not ignoring own temp directory... #106

Open
Grimeton opened this issue Apr 2, 2020 · 1 comment
Open

node-deb not ignoring own temp directory... #106

Grimeton opened this issue Apr 2, 2020 · 1 comment

Comments

@Grimeton
Copy link

Grimeton commented Apr 2, 2020

Hi,

let's say we got the following situation.

Source in: /usr/src/package
Result in: /usr/src/package/build

Now I auto generate the package.json file into /usr/src/package/build, because there are all the files that I want to have in the package later.

Now I do the following:

cd /usr/src/package/build

node-deb --verbose -- .

Now node-deb creates a sub folder called "package-ver.sio.n_all" in /usr/src/package/build and starts creating the folder in "package-ver.sio.n that it finds in /usr/src/package/build as well as copying the files over.

When it's done, it errors out with:

cp: cannot create regular file 'package-ver.sio.n_all/usr/share/package/app/./package-ver.sio.n_all/usr/share/package/app/path/to/some/file: No such file or directory

This happens because it's not able to ignore the temporary directory it created directly inside the local folder that I tried to build via ".".

Now if I move over to use the following command:

cd /usr/src/package

node-deb --verbose -- ./build

node-deb is now crying because it cannot find the package.json file, which is fine because it is inside the build directory. What is not fine is that I'm not able to tell node-deb which package.json to use....

So what I then do is copying build/package.json to .. and then execute again:

cd /usr/src/package

node-deb --verbose -- ./build

Which finishes, but now I have the build directory in the package at /usr/share/${package_name}/app/BUILD/ and I do not want that.

So I have a few questions:

  • How do I tell node-deb to use a specific folder as the "root" folder without including its name?
  • How do I tell node-deb to use a specific temp folder OUTSIDE the folder I'm building?
  • How do I tell node-deb where to find the package.json file?

Thanks!

KR.

@Grimeton
Copy link
Author

Grimeton commented Apr 2, 2020

While we're at it:

  • Why do all build packages depend on sudo later?
  • How do I prevent node-deb from adding /etc/default/${PACKAGE_NAME} ?
  • How do I prevent node-deb from adding /etc/${PACKAGE_NAME} ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant