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

[deliver] make screenshots path relative to Preview.html file #13223

Merged

Conversation

joshdholtz
Copy link
Member

Fixes #13176

Problem

The images in Preview.html were relative on the project root but the Preview.html file is located inside of the fastlane directory.

Solution

The images (app icon, watch app, and screenshots) get a path that is rendered realtive to the fastlane directory

def render_relative_path(export_path, path)
export_path = Pathname.new(export_path)
path = Pathname.new(path).relative_path_from(export_path)
return path.to_path
Copy link
Collaborator

Choose a reason for hiding this comment

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

path.to_path
horseheadinception

Copy link
Collaborator

@taquitos taquitos left a comment

Choose a reason for hiding this comment

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

🐴 👍

@joshdholtz joshdholtz merged commit ef5e38b into master Aug 29, 2018
@joshdholtz joshdholtz deleted the joshdholtz-deliver-preview-relative-path-screenshots branch August 29, 2018 14:09
@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.103.0 🚀

janpio pushed a commit to janpio/fastlane that referenced this pull request Sep 11, 2018
@fastlane fastlane locked and limited conversation to collaborators Nov 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants