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

[TIMOB-26371] Ensure buildAssetsDir exists before writing app props file #10313

Merged
merged 2 commits into from Sep 18, 2018

Conversation

ewanharris
Copy link
Collaborator

JIRA: https://jira.appcelerator.org/browse/TIMOB-26371

Due to the parallelisation of this processes the assets dir doesn't already exist. Just make sure it exists before we write it.

@@ -5819,6 +5819,8 @@ iOSBuilder.prototype.copyResources = function copyResources(next) {
const contents = JSON.stringify(props);
if (!fs.existsSync(appPropsFile) || contents !== fs.readFileSync(appPropsFile).toString()) {
this.logger.debug(__('Writing %s', appPropsFile.cyan));

fs.existsSync(this.buildAssetsDir) || wrench.mkdirSyncRecursive(this.buildAssetsDir);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you only do this if encryption is enabled?

if (this.encryptJS && fs.existsSync(this.buildAssetsDir)) {
    wrench.mkdirSyncRecursive(this.buildAssetsDir);
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I had missed that we're not always working with buildAssetsDir, and looking at the flow xcodeAppDir will exist before this so I'll edit to only do this when we're encrypting

@build
Copy link
Contributor

build commented Sep 13, 2018

Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

@sgtcoolguy sgtcoolguy merged commit b4e93b4 into tidev:next Sep 18, 2018
@sgtcoolguy sgtcoolguy added this to the 8.0.0 milestone Sep 18, 2018
@ewanharris ewanharris deleted the TIMOB-26371 branch August 31, 2021 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants