You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
Thanks!
KR.
The text was updated successfully, but these errors were encountered: