Skip to content

Commit cb1c1d8

Browse files
authored
Merge pull request #39 from qawolf/add-rpm-and-appimage-support
feat: add `.rpm` and `.AppImage` support
2 parents defb787 + f87bbe2 commit cb1c1d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
66

77
```
88
# Add this to your Gemfile
9-
gem "fastlane-plugin-qawolf", git: "https://github.com/qawolf/fastlane-plugin-qawolf", tag: "0.4.2"
9+
gem "fastlane-plugin-qawolf", git: "https://github.com/qawolf/fastlane-plugin-qawolf", tag: "0.4.3"
1010
```
1111

1212
## About qawolf

lib/fastlane/plugin/qawolf/actions/upload_to_qawolf_action.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module SharedValues
1010

1111
# Casing is important for the action name!
1212
class UploadToQawolfAction < Action
13-
SUPPORTED_FILE_EXTENSIONS = ["apk", "ipa", "aab", "deb"]
13+
SUPPORTED_FILE_EXTENSIONS = ["apk", "ipa", "aab", "deb", "rpm", "appimage"]
1414

1515
def self.run(params)
1616
qawolf_api_key = params[:qawolf_api_key] # Required
@@ -38,7 +38,7 @@ def self.validate_file_path(file_path)
3838
UI.user_error!("No file found at '#{file_path}'.") unless File.exist?(file_path)
3939

4040
# Validate file extension.
41-
extension = File.extname(file_path).sub(/^\./, '')
41+
extension = File.extname(file_path).sub(/^\./, '').downcase
4242
unless SUPPORTED_FILE_EXTENSIONS.include?(extension)
4343
UI.user_error!("file_path is invalid, only files with extensions #{SUPPORTED_FILE_EXTENSIONS} are allowed to be uploaded.")
4444
end

0 commit comments

Comments
 (0)