makr 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/data/makr/Makefile.erb +4 -20
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66ab4dfa70743c4856055556cd2924a5ab955fca
4
- data.tar.gz: 1f6dd10ccf4e9fdf4fcc8161f7d1edfac66ff2b8
3
+ metadata.gz: c236bf7a060112c106855540d28576988af3d2fe
4
+ data.tar.gz: 6fa4141a4a4d9b87fd8a41d918e878eb4b970210
5
5
  SHA512:
6
- metadata.gz: ed2cb69e00ea05e0013cbb17d590ae857543e35c83bc427c47a7da8c06731abded8e645a519083aa72880559be199996fb3a6f90afde4a0f92abaee7ad6dfe3c
7
- data.tar.gz: 3ff71cded3c80fb21ce603063a0e01ff4af49e33629ad309b1f90a22425162ec9b089fd5fb68c8733cebb048c4c190132cc89fb3308b50c2e2e6ee61736e9796
6
+ metadata.gz: 0f8d86fca0f480e742a1a7bbfe7ccfcef5bb3d6628361f92e6d09a09f24d122be468de8f92c1236c3beb1943c289d9daeddac6715a11f331b2d5f1d0c9f9b857
7
+ data.tar.gz: b1069fa0c124bb3e82b11b4ba8d702cb5f8cb9e6b37a7d8213a6194d2248037b8ea2f6d4fe032c713e9610e63780471063fd8b8d812d3404f95cac22d146c3ba
@@ -30,19 +30,8 @@ IPAS = <% Array(config["archives"]).each do |archive| -%>
30
30
  <% Array(archive["ipas"]).each do |ipa| -%>
31
31
  $(IPAS_PATH)/<%= ipa["name"] %>.ipa <% end -%><% end -%>
32
32
 
33
- # Get current version
34
- CURRENT_VERSION=$(shell agvtool what-version -terse)
35
-
36
- # If build number if defined and it's different than the current build number
37
- # add update-version step to be used for all target
38
- ifdef BUILD_NUMBER
39
- UPDATE_VERSION = update-version
40
- else
41
- UPDATE_VERSION=
42
- endif
43
-
44
- # Updates project version if needed and generates all IPAs
45
- all: $(UPDATE_VERSION) $(IPAS)
33
+ # Generates all IPAs
34
+ all: $(IPAS)
46
35
 
47
36
  # Create profiles directory
48
37
  $(PROFILES_DIR):
@@ -52,11 +41,6 @@ $(PROFILES_DIR):
52
41
  install-profiles: $(PROFILES_DIR)
53
42
  rsync -av ./profiles/ ~/Library/MobileDevice/Provisioning\ Profiles/
54
43
 
55
- # Updates project version using agvtool
56
- update-version:
57
- agvtool new-version -all $(CURRENT_VERSION).$(BUILD_NUMBER)
58
- agvtool new-marketing-version $(CURRENT_VERSION)
59
-
60
44
  <% Array(config["archives"]).each do |archive| -%>
61
45
  # Create <%=archive["name"]%>.xcarchive
62
46
  $(ARCHIVES_PATH)/<%=archive["name"]%>.xcarchive:
@@ -82,7 +66,7 @@ $(IPAS_PATH)/<%=ipa["name"]%>.ipa: $(IPAS_PATH) $(ARCHIVES_PATH)/<%=archive["nam
82
66
  <% Array(ipa["distributions"]).each do |distribution| -%>
83
67
  <% if distribution["type"] == "testflight" -%>
84
68
  # Upload <%=ipa["name"]%>.ipa to <%=distribution["type"]%>
85
- distribute-<%= distribution["name"] %>:
69
+ distribute-<%= ipa["name"] %>-<%= distribution["name"] %>:
86
70
  curl http://testflightapp.com/api/builds.json \
87
71
  -F file=@'$(IPAS_PATH)/<%= ipa["name"] %>.ipa' \
88
72
  -F api_token='<%= distribution["api-token"] %>' \
@@ -103,7 +87,7 @@ $(IPAS_PATH):
103
87
  distribute-all: <% Array(config["archives"]).each do |archive| -%>
104
88
  <% Array(archive["ipas"]).each do |ipa| -%>
105
89
  <% Array(ipa["distributions"]).each do |distribution| -%>
106
- distribute-<%= distribution["name"] -%>
90
+ distribute-<%= ipa["name"] %>-<%= distribution["name"] -%>
107
91
  <% end -%>
108
92
  <% end -%>
109
93
  <% end -%>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Carter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-25 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Makr reads the config.yaml file in the current directory to generate
14
14
  a Makefile capable of building, testing, and distributing Xcode projects and workspaces.