souyuz 0.10.0 → 0.10.4
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: 55d0affa2aee2277a4edfab7ba42767e11d89c2f02a39b08eceb43da21265411
|
4
|
+
data.tar.gz: 215e0841a5916bd10e5927a73d5ac2e03b08903447b5a7455cb83b257a469ba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dade6c79e7f3193a4a0d9cef59a3e9e47cbde037c28e05695e4164d8fa1149853aa94a1a200b96df76efc2219221b4bc254eadf4f37f7cc3f72eafdd4eac1cf
|
7
|
+
data.tar.gz: 5c1923273ef5179aec3b4a4f50a441ead1ed7715e6e5e934a04cd18e0b74aeb233da1cc2060704c9962ad3f3cd568ff4914624c93a0883b4dcb25ebc943f39d9
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# Souyuz
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/voydz/souyuz.svg?branch=master)](https://travis-ci.org/voydz/souyuz)
|
4
|
-
|
5
3
|
A fastlane component to make Xamarin builds a breeze. Souyuz is now avaialbe as an **Fastlane plugin** see [fastlane-plugin-souyuz](fastlane-plugin-souyuz) for details.
|
6
4
|
|
7
5
|
*NOTE: While souyuz should continue working with your existing configuration just fine, consider using the Fastlane plugin.*
|
@@ -4,12 +4,12 @@ module Souyuz
|
|
4
4
|
class << self
|
5
5
|
def generate
|
6
6
|
build_apk_path = Souyuz.cache[:build_apk_path]
|
7
|
-
Souyuz.cache[:signed_apk_path] = "#{build_apk_path}-
|
7
|
+
Souyuz.cache[:signed_apk_path] = "#{build_apk_path}-signed"
|
8
8
|
|
9
9
|
parts = prefix
|
10
10
|
parts << detect_apksigner_executable
|
11
11
|
parts += options
|
12
|
-
parts <<
|
12
|
+
parts << Souyuz.cache[:aligned_apk_path]
|
13
13
|
parts += pipe
|
14
14
|
|
15
15
|
parts
|
@@ -27,10 +27,10 @@ module Souyuz
|
|
27
27
|
|
28
28
|
def options
|
29
29
|
options = []
|
30
|
-
options << "sign"
|
30
|
+
options << "sign"
|
31
31
|
options << "--verbose" if $verbose
|
32
32
|
options << "--ks \"#{Souyuz.config[:keystore_path]}\""
|
33
|
-
options << "--ks-pass \"
|
33
|
+
options << "--ks-pass \"pass:#{Souyuz.config[:keystore_password]}\""
|
34
34
|
options << "--ks-key-alias \"#{Souyuz.config[:keystore_alias]}\""
|
35
35
|
options << "--out \"#{Souyuz.cache[:signed_apk_path]}\""
|
36
36
|
|
@@ -3,11 +3,14 @@ module Souyuz
|
|
3
3
|
class ZipalignCommandGenerator
|
4
4
|
class << self
|
5
5
|
def generate
|
6
|
+
build_apk_path = Souyuz.cache[:build_apk_path]
|
7
|
+
Souyuz.cache[:aligned_apk_path] = "#{build_apk_path}-aligned"
|
8
|
+
|
6
9
|
parts = prefix
|
7
10
|
parts << zipalign_apk
|
8
11
|
parts += options
|
9
|
-
parts <<
|
10
|
-
parts << Souyuz.cache[:
|
12
|
+
parts << build_apk_path
|
13
|
+
parts << Souyuz.cache[:aligned_apk_path]
|
11
14
|
parts += pipe
|
12
15
|
|
13
16
|
parts
|
data/lib/souyuz/runner.rb
CHANGED
@@ -37,9 +37,10 @@ module Souyuz
|
|
37
37
|
build_path = Souyuz.project.options[:output_path]
|
38
38
|
assembly_name = Souyuz.project.options[:assembly_name]
|
39
39
|
|
40
|
-
|
40
|
+
build_apk_path = "#{build_path}/#{assembly_name}.apk"
|
41
|
+
Souyuz.cache[:build_apk_path] = build_apk_path
|
41
42
|
|
42
|
-
|
43
|
+
build_apk_path
|
43
44
|
end
|
44
45
|
|
45
46
|
def apksign_and_zipalign
|
@@ -55,6 +56,12 @@ module Souyuz
|
|
55
56
|
print_all: false,
|
56
57
|
print_command: !Souyuz.config[:silent])
|
57
58
|
|
59
|
+
# move signed apk back to build apk path
|
60
|
+
FileUtils.cp_r(
|
61
|
+
Souyuz.cache[:signed_apk_path],
|
62
|
+
Souyuz.cache[:build_apk_path],
|
63
|
+
:remove_destination => true)
|
64
|
+
|
58
65
|
UI.success "Successfully signed apk #{Souyuz.cache[:build_apk_path]}"
|
59
66
|
end
|
60
67
|
|
data/lib/souyuz/version.rb
CHANGED