fastlane-plugin-match_keystore 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cf1cf5e0df1d941bd776ab65ad5bccf1ef4059a07fcbd31040ccc0cd988332e
|
4
|
+
data.tar.gz: 9bd6479f34526a30974d7a4a65874be1a9232c967facff8b0f09b8f624c91314
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b20f9c4d03b4a6ba7e733007bdc5d55103c9bce852c83e438bb0177ed30636b9feaa28fee2da68e80a4ab2bc95a47c574e41fafc56915383926e451b2fb46ee
|
7
|
+
data.tar.gz: b25983d059e338fd93d582292e02c87ff154179872a1944dd9b465365fbd181bb26d8e02e409b204a2bba5bd322985acd58fc92983a22e6e153a9ea1df748997
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'fastlane/action'
|
2
2
|
require 'fileutils'
|
3
|
+
require 'os'
|
3
4
|
require_relative '../helper/match_keystore_helper'
|
4
5
|
|
5
6
|
module Fastlane
|
@@ -54,7 +55,11 @@ module Fastlane
|
|
54
55
|
|
55
56
|
def self.gen_key(key_path, password)
|
56
57
|
`rm -f #{key_path}`
|
57
|
-
|
58
|
+
if OS.mac?
|
59
|
+
`echo "#{password}" | openssl dgst -sha512 | cut -c1-128 > #{key_path}`
|
60
|
+
else
|
61
|
+
`echo "#{password}" | openssl dgst -sha512 | awk '{print $2}' | cut -c1-128 > #{key_path}`
|
62
|
+
end
|
58
63
|
end
|
59
64
|
|
60
65
|
def self.encrypt_file(clear_file, encrypt_file, key_path)
|