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 +4 -4
- data/README.md +47 -14
- data/lib/runapk.rb +5 -6
- data/lib/runapk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb40bc237d0548ac1f6de538b6086235a18b3d146fd30e6a5ac0fcfab08e49d5
|
|
4
|
+
data.tar.gz: 3561ed54bb3b229b187e2be5441e4bc8c8d7995caa741af2c2cbf384bd76165c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a785fad0bf9a894b0a9074663193bfe6445df292ae7f5fae7e793aef796ae34620935d3f25e8dc62d0dafe218ad1b726ae03fe9cf359c0d9c45ba526778240cb
|
|
7
|
+
data.tar.gz: 4067debecc97fe8c7c6fd31b5ac03e253519afd3bc1d4daabbcad272b6563d6547a2ee3ce312223a467c727b853a26f0c02e07f861a99b4d0b5d478930c16fa2
|
data/README.md
CHANGED
|
@@ -1,28 +1,61 @@
|
|
|
1
1
|
# Runapk
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
7
|
+
Install it yourself as:
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
$ gem install Runapk
|
|
10
|
+
|
|
11
|
+
Then you can call in your terminal:
|
|
12
|
+
|
|
13
|
+
$ runapk
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## Supported OS
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- Mac
|
|
18
|
+
- Windows
|
|
19
|
+
- Linux
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
## Dependencies
|
|
20
22
|
|
|
21
|
-
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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).
|
data/lib/runapk.rb
CHANGED
|
@@ -28,17 +28,17 @@ def prod(p)
|
|
|
28
28
|
|
|
29
29
|
cmd("ionic cordova platform add android")
|
|
30
30
|
|
|
31
|
-
puts '
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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
|
|
data/lib/runapk/version.rb
CHANGED