fastlane-plugin-unity_exporter 1.0.0 → 1.0.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: 5d8f86fa27fb63a03a99dcc669832ad4ef700f9548e36ef2e1fc797fc54aa689
4
- data.tar.gz: '029e648522051179dab3010516cd34920b0aa22934e66f49722cc000162fd494'
3
+ metadata.gz: 96e50a14af9081a9995f926e20603a15aeeebbdb167c3a7488488e074f9095b4
4
+ data.tar.gz: 3f894f28a17b8addad168696daf246e408ed00ba6e2164f4a9c742a97b114ec2
5
5
  SHA512:
6
- metadata.gz: 0ea2e1fe2623d7ca96fe35fe766c530601fba3e176ffa4f9da385edb1d0d6a3dde03b8b0c1fc5b5f0414745d346bf391a3e97c4f3c9fbfd10c9e384bd4a9f2a5
7
- data.tar.gz: f0a4509e13da5329766ca8d5a34ea56126e04bec7fa8171cafa3bcc396f5a1907885bb2744d99b3dae3afaab6ba9b7c27fc634748d10f0a0549785c947212063
6
+ metadata.gz: 69f08ae45b2538b88c47fe4c2b01bf78312b2fc952414a21e5a733c1da4d41e459f3b3a0db9e184c4b1c56217ff44d917864c2ff9a4d78586b1488c80926fdf8
7
+ data.tar.gz: 1629f955e2b634eceff64074e821d3c93336e92d79b3d14ddc6681fdb4ea51ce08b7961a388122174b00ff8a8a63249588e960c7b0ab66032e32cc745964aedb
data/README.md CHANGED
@@ -31,10 +31,11 @@ Assuming you don't have _fastlane_ configured yet, we propose the following:
31
31
  1) Add the [_Unity Build Exporter_](https://github.com/ar-met/unity-build-exporter) via the [_Unity Package Manager_](https://docs.unity3d.com/Manual/Packages.html) to your _Unity3d_ project
32
32
  2) Open your _Unity3d_ project and find the menu items `Build Exporter / Initialize 'fastlane' directories for Android` and `Build Exporter / Initialize 'fastlane' directories for iOS`
33
33
  3) Commit the changes to your repository
34
- 4) Navigate to `{Unity3d-project-root}/fastlane-build-exporter/iOS` and `{Unity3d-project-root}/fastlane-build-exporter/Android` and `fastlane init` respectively
35
- 5) Commit the changes to your repository
36
- 6) See [Getting Started](#getting-started)
37
- 7) Use [the actions of the plugin](#actions)
34
+ 4) Navigate to `{Unity3d-project-root}/fastlane-build-exporter/iOS/unity-export` and `{Unity3d-project-root}/fastlane-build-exporter/Android/unity-export` and `fastlane init` respectively
35
+ 5) Move the created `fastlane/` directory up one level, such that it is on the same hierarchical level as `unity-export/`
36
+ 6) Commit the changes to your repository
37
+ 7) See [Getting Started](#getting-started)
38
+ 8) Use [the actions of the plugin](#actions)
38
39
 
39
40
  We suggest you also check out the [_example Unity3d project_](https://github.com/ar-met/fastlane-plugin-unity-exporter-example-project).
40
41
 
@@ -87,8 +88,13 @@ unity_export(build_target: "...", new_version_code: "42")
87
88
  # increments the existing version code (Android) and build number (iOS)
88
89
  unity_export(build_target: "...", new_version_code: "increment")
89
90
 
90
- # combined usage of 'new_version' and 'new_version_code'
91
- unity_export(build_target: "...", new_version: "2.3.4", new_version_code: "0")
91
+ # exports the Unity project to the specified path
92
+ # if no export path is specified, a default path will be used
93
+ # note that the starting point for relative paths is the root of the Unity project
94
+ unity_export(build_target: "...", export_path: "path/some-example-builds-directory")
95
+
96
+ # combined usage of 'new_version' and 'new_version_code' and 'export_path'
97
+ unity_export(build_target: "...", new_version: "2.3.4", new_version_code: "0", export_path: "path/Builds")
92
98
  ```
93
99
 
94
100
  ### Using `unity_commit_version_bump`
@@ -104,16 +110,29 @@ unity_commit_version_bump
104
110
  ```
105
111
 
106
112
 
113
+ ## Example
114
+
115
+ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
116
+
117
+ Also check out the example [_Unity3d_ project](https://github.com/ar-met/fastlane-plugin-unity-exporter-example-project) to see how this plugin works. See the repositories readme for more details.
118
+
119
+
107
120
  ## Compatibility
108
121
 
109
122
  Both this _fastlane plugin_ and the [_Unity Build Exporter_](https://github.com/ar-met/unity-build-exporter) were developed with _Unity 2020.3.13f1_. We haven't tested the plugin with any earlier versions, but we don't expect there to be any issues. If you run into trouble, regarding compatibility or anything else, [please open an issue](https://github.com/ar-met/unity-build-exporter/issues). For pull requests [see here](#pull-requests).
110
123
 
111
124
 
112
- ## Example
125
+ ## Ruby
113
126
 
114
- Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
127
+ Note that this plugin requires `Ruby 2.7.4`.
115
128
 
116
- Also check out the example [_Unity3d_ project](https://github.com/ar-met/fastlane-plugin-unity-exporter-example-project) to see how this plugin works. See the repositories readme for more details.
129
+ ### Ruby on Mac
130
+
131
+ Installing ruby -- even different versions of it -- on Mac and _fastlane_ is well documented.
132
+
133
+ ### Ruby on Windows
134
+
135
+ To install ruby on Windows you, e.g., can use [_RubyInstaller_](https://rubyinstaller.org/downloads/). Be sure to get `Ruby 2.7.4`. After that you can use `gem` commands with Windows' command prompt and rely on _fastlane_'s documentation to get you going.
117
136
 
118
137
 
119
138
  ## Pull requests
@@ -29,7 +29,12 @@ module Fastlane
29
29
  headless_args << " -executeMethod armet.BuildExporter.BuildUtility.CreateBuild"
30
30
  headless_args << " -newVersion #{params[:new_version]}" if params[:new_version]
31
31
  headless_args << " -newVersionCode #{params[:new_version_code]}" if params[:new_version_code]
32
- headless_args << " -exportPath fastlane-build-exporter/#{params[:build_target]}/unity-export"
32
+
33
+ if params[:export_path]
34
+ headless_args << " -exportPath #{params[:export_path]}"
35
+ else
36
+ headless_args << " -exportPath fastlane-build-exporter/#{params[:build_target]}/unity-export"
37
+ end
33
38
 
34
39
  # NOTE: the different relative paths used in 'projectPath' and 'exportPath'
35
40
  # while 'projectPath' is relative to the 'fastfile',
@@ -159,7 +164,14 @@ module Fastlane
159
164
  UI.user_error!("Please pass a valid version code. For options see 'fastlane action unity_exporter'")
160
165
  end
161
166
  end
162
- end)
167
+ end),
168
+
169
+ FastlaneCore::ConfigItem.new(key: :export_path,
170
+ env_name: "FL_UNITY_EXPORT_PATH",
171
+ description: "The path to the exported Unity project. The starting point for relative paths is the root of the Unity project",
172
+ optional: true,
173
+ type: String,
174
+ conflicting_options: [:arguments])
163
175
  ]
164
176
  end
165
177
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UnityExporter
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-unity_exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ar:met
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-26 00:00:00.000000000 Z
11
+ date: 2022-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: '2.5'
180
+ version: '2.7'
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - ">="