{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/4532","labels_url":"https://api.github.com/repos/meteor/meteor/issues/4532/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/4532/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/4532/events","html_url":"https://github.com/meteor/meteor/issues/4532","id":86838094,"number":4532,"title":"Windows build should not set read-only attribute","user":{"login":"fongandrew","id":179327,"avatar_url":"https://avatars.githubusercontent.com/u/179327?v=3","gravatar_id":"","url":"https://api.github.com/users/fongandrew","html_url":"https://github.com/fongandrew","followers_url":"https://api.github.com/users/fongandrew/followers","following_url":"https://api.github.com/users/fongandrew/following{/other_user}","gists_url":"https://api.github.com/users/fongandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/fongandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fongandrew/subscriptions","organizations_url":"https://api.github.com/users/fongandrew/orgs","repos_url":"https://api.github.com/users/fongandrew/repos","events_url":"https://api.github.com/users/fongandrew/events{/privacy}","received_events_url":"https://api.github.com/users/fongandrew/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/feature","name":"feature","color":"02d7e1"},{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Windows","name":"Project:Windows","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-10T04:49:29Z","updated_at":"2015-06-11T18:12:19Z","closed_at":null,"body":"On a fresh Meteor project on Windows, `meteor build` sets the read-only attribute on the resulting build directory and its subdirectories and its files. This can be annoying if you try to delete the directory from the command line or Powershell (oddly enough, explorer.exe seems to just ignore the flag). It also makes it more difficult to integrate Meteor into cross-platform NodeJS-based tools that aren't aware of Windows read-only attributes.\r\n\r\nReproduction steps, using Meteor 1.1.0.2 on Windows 8.1:\r\n\r\n* `meteor create myapp`\r\n* `cd myapp`\r\n* `meteor build --directory ..\\build`\r\n\r\nAs a work-around, manually unsetting the read-only flag is fairly simple: `attrib -r build/*.* /s`"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/111227987","html_url":"https://github.com/meteor/meteor/issues/4532#issuecomment-111227987","issue_url":"https://api.github.com/repos/meteor/meteor/issues/4532","id":111227987,"user":{"login":"fongandrew","id":179327,"avatar_url":"https://avatars.githubusercontent.com/u/179327?v=3","gravatar_id":"","url":"https://api.github.com/users/fongandrew","html_url":"https://github.com/fongandrew","followers_url":"https://api.github.com/users/fongandrew/followers","following_url":"https://api.github.com/users/fongandrew/following{/other_user}","gists_url":"https://api.github.com/users/fongandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/fongandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fongandrew/subscriptions","organizations_url":"https://api.github.com/users/fongandrew/orgs","repos_url":"https://api.github.com/users/fongandrew/repos","events_url":"https://api.github.com/users/fongandrew/events{/privacy}","received_events_url":"https://api.github.com/users/fongandrew/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T18:12:19Z","updated_at":"2015-06-11T18:12:19Z","body":"Well, in my case, I'm trying to use https://github.com/frozeman/meteor-build-client to generate a standalone Meteor client that I can run with Electron Shell. The process involves removing some of the server-specific files from the bundle the build command generates."}}