Comments (4)
@panreyes
Thank you for your interest and support.
This code is for granting read permission to other users in linux and max.
webOS is linux-based, it is to add read permission of other users of the file before packaging.
In the case of windows, ares-pacakge itself does not operate normally if there is no read permission. In other words, it means that the target files to be packaged must have read permission by default.
Also for security reasons we can't give 777 permission to it.
So we have decided not to reflect this. We ask for your understanding regarding this and your interest and support:)
from ares-cli.
@ssuminahn Thank you for your response.
I understand that giving 777 permissions to everything is not the best solution, that was my quick & dirty patch but if ares-package is going to be used in Windows for packaging apps with native executables, a solution should be found.
New solution proposal:
- Tell ares-package which files should use umask 0755 through command line parameters.
- Apply umask 0755 to the files mentioned in the parameters and standard umask 0644 to the rest of them.
If you consider this as a good idea, I would love to contribute to this project by implementing it :)
from ares-cli.
@panreyes
I'm so sorry, I guess I didn't fully understood your post before.
We knew that in the case of packaging an app or service through ares-package in Windows, the file permission could not be given correctly. To solve this, there is the way to solve it using package.properties
file.
The format of package.properties
file as below, and the file is located under an app or service directory like same path appinfo.json
or services.json
.
-
Format of
package.properties
:filemode.<Three permission triads>=<filename including extension>
-
Location of
package.properties
app/
+--- appinfo.json
+--- package.properties
+--- (...)
OR
service/
+--- services.json
+--- package.properties
+--- (...) -
For example, file names are
test
anddata.json
and to set permission 755.
filemode.755=test,data.json (separator,
)
OR
filemode.755=test
filemode.755=data.json
I hope my answer is enough to solve your problem. And the missing guide on this will be updated later.
Thank you for your interest and we look forward to your continued interest and support in the future :)
from ares-cli.
@ssuminahn I did not know about that method, thanks a lot for the solution! :)
from ares-cli.
Related Issues (12)
- Where is ares-novacom HOT 2
- Update Tar version from currently used 2.2.2 HOT 1
- ares-device -c capture.png failes with unknown method "captureCompositorOutput" HOT 1
- Update dependency shelljs >= v0.8.5 HOT 1
- Update dependency ssh2 >= v1.4.0 HOT 1
- Update dependency async >= v3.2.2 HOT 1
- Bundle assets into the .ipk HOT 1
- Cannot install application HOT 5
- ares-install not working once I updated Developer Mode application in my LG TV. HOT 1
- ares-device -i fails on webOS3.5
- Change output filename HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ares-cli.