Runapk 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 646f7d773167e5d85f8ebe09b1ae10ea30570253f71ec227a157492ff5fd4910
4
- data.tar.gz: d2f88c3356c04a94bf3d5e23d66b957feae8baa83caec998092a038341b50068
3
+ metadata.gz: eb40bc237d0548ac1f6de538b6086235a18b3d146fd30e6a5ac0fcfab08e49d5
4
+ data.tar.gz: 3561ed54bb3b229b187e2be5441e4bc8c8d7995caa741af2c2cbf384bd76165c
5
5
  SHA512:
6
- metadata.gz: 2c14e34a2bc0670bb2f83998f91c0a647c1d8ddd915e8c15e6292980dd0a36762cca8b0d002b9a764feb0b3bf4239479df5f618c5d193dcae002c4b553e64160
7
- data.tar.gz: 6ad6e4580ce1d8c7ea19e91c7d878dda30253cc1532f40fe8b4a40e3aee52a565767c3c85042f9a8e4fd0f2c870dd8124772ce4448bfe335e2b626c7a5431a0a
6
+ metadata.gz: a785fad0bf9a894b0a9074663193bfe6445df292ae7f5fae7e793aef796ae34620935d3f25e8dc62d0dafe218ad1b726ae03fe9cf359c0d9c45ba526778240cb
7
+ data.tar.gz: 4067debecc97fe8c7c6fd31b5ac03e253519afd3bc1d4daabbcad272b6563d6547a2ee3ce312223a467c727b853a26f0c02e07f861a99b4d0b5d478930c16fa2
data/README.md CHANGED
@@ -1,28 +1,61 @@
1
1
  # Runapk
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/runapk`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Runapk is a command line tool that exports applications built in ionic, its goal is to make simple apk creation, signature and management, say goodbye to folder navigation and hello to the `` runapk`` command.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
7
+ Install it yourself as:
10
8
 
11
- ```ruby
12
- gem 'runapk'
13
- ```
9
+ $ gem install Runapk
10
+
11
+ Then you can call in your terminal:
12
+
13
+ $ runapk
14
14
 
15
- And then execute:
15
+ ## Supported OS
16
16
 
17
- $ bundle
17
+ - Mac
18
+ - Windows
19
+ - Linux
18
20
 
19
- Or install it yourself as:
21
+ ## Dependencies
20
22
 
21
- $ gem install runapk
23
+ - Jarsigner (Install java sdk, add it to your path and you be fine)
24
+ - Zipalign (Install android sdk, add it build tools folder to your path and you be fine)
25
+ - Keystore
22
26
 
23
27
  ## Usage
24
28
 
25
- TODO: Write usage instructions here
29
+ 1. Generate a Keystore
30
+
31
+ > If your already have a kestore skip to step 3
32
+
33
+ ```
34
+ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
35
+ ```
36
+
37
+ 3. Create a ``runapk.yml`` in your ionic app root folder with this content:
38
+ ```
39
+ app:
40
+ name: 'App Name'
41
+ version: '1.0.0'
42
+ android:
43
+ version: '5.0.0'
44
+ sign:
45
+ path: '~/Desktop/your-key.keystore'
46
+ ionic:
47
+ version: 1
48
+ output:
49
+ path: '~/Desktop'
50
+ ```
51
+
52
+ Replace these properties according to your project
53
+
54
+ 4. In your project root folder just run
55
+
56
+ ```
57
+ runapk
58
+ ```
26
59
 
27
60
  ## Development
28
61
 
@@ -32,7 +65,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
65
 
33
66
  ## Contributing
34
67
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/runapk. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
68
+ Bug reports and pull requests are welcome on GitHub at https://github.com/gabriellacerda/runapk. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
69
 
37
70
  ## License
38
71
 
@@ -40,4 +73,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
73
 
41
74
  ## Code of Conduct
42
75
 
43
- Everyone interacting in the Runapk project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/runapk/blob/master/CODE_OF_CONDUCT.md).
76
+ Everyone interacting in the Runapk project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/gabriellacerda/runapk/blob/master/CODE_OF_CONDUCT.md).
@@ -28,17 +28,17 @@ def prod(p)
28
28
 
29
29
  cmd("ionic cordova platform add android")
30
30
 
31
- puts 'Exportando apk...'.green
31
+ puts 'Exporting apk...'.green
32
32
 
33
33
  cmd("ionic cordova build android --prod --release")
34
34
 
35
35
  puts 'Signing apk, enter the password of your certificate'.green
36
36
 
37
- cmd("#{build_path}/jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore #{cert_path} platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name")
37
+ cmd("jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore #{cert_path} platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name")
38
38
 
39
39
  puts 'Compressing apk'.green
40
40
 
41
- cmd("#{build_path}/zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk platforms/android/build/outputs/apk/#{app_name}#{app_version}.apk")
41
+ cmd("zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk platforms/android/build/outputs/apk/#{app_name}#{app_version}.apk")
42
42
 
43
43
  puts 'Moving apk'.green
44
44
 
@@ -63,7 +63,6 @@ def dev(p)
63
63
  cert_path = config['sign']['path']
64
64
  ionic_version = config['ionic']['version']
65
65
  output_path = config['output']['path']
66
- build_path = config['build']['path']
67
66
 
68
67
  puts 'Ensuring that the platform is added ...'.green
69
68
 
@@ -75,11 +74,11 @@ def dev(p)
75
74
 
76
75
  puts 'Signing apk, enter the password of your certificate'.green
77
76
 
78
- cmd("#{build_path}/jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore #{cert_path} platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name")
77
+ cmd("jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore #{cert_path} platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name")
79
78
 
80
79
  puts 'Compressing apk'.green
81
80
 
82
- cmd("#{build_path}/zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk platforms/android/build/outputs/apk/#{app_name}#{app_version}.apk")
81
+ cmd("zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk platforms/android/build/outputs/apk/#{app_name}#{app_version}.apk")
83
82
 
84
83
  puts 'Moving apk'.green
85
84
 
@@ -1,3 +1,3 @@
1
1
  module Runapk
2
- VERSION = "1.0.1"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Runapk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GabrielLacerda