Skip to content

Commit

Permalink
[supply] Save changelog files as version code instead of version name
Browse files Browse the repository at this point in the history
Google Play expects changelog files to be named for the version code to which they will be applied
  • Loading branch information
joshsnelling authored and Josh Holtz committed Apr 8, 2020
1 parent 5b2eb50 commit b1f2bc4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions supply/lib/supply/setup.rb
Expand Up @@ -98,9 +98,11 @@ def store_release_listing(release_listing)
FileUtils.mkdir_p(containing)
end

path = File.join(containing, "#{release_listing.version}.txt")
UI.message("Writing to #{path}...")
File.write(path, release_listing.release_notes)
release_listing.versioncodes.each do |versioncode|
path = File.join(containing, "#{versioncode}.txt")
UI.message("Writing to #{path}...")
File.write(path, release_listing.release_notes)
end
end

private
Expand Down

0 comments on commit b1f2bc4

Please sign in to comment.