Coder Social home page Coder Social logo

Comments (4)

ssuminahn avatar ssuminahn commented on August 16, 2024

@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.

panreyes avatar panreyes commented on August 16, 2024

@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.

ssuminahn avatar ssuminahn commented on August 16, 2024

@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 and data.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.

panreyes avatar panreyes commented on August 16, 2024

@ssuminahn I did not know about that method, thanks a lot for the solution! :)

from ares-cli.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.