fastlane-plugin-unity_exporter 1.0.3 → 1.0.4

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: 99aaaf9abdb2e6fa743ffb0817d6631f18d9ce657802aeac72e33aed6ad3be60
4
- data.tar.gz: 613bd80e538855cce80c4e80e5accb65747398eef2fb2efe8b0fe63133372b99
3
+ metadata.gz: 96e50a14af9081a9995f926e20603a15aeeebbdb167c3a7488488e074f9095b4
4
+ data.tar.gz: 3f894f28a17b8addad168696daf246e408ed00ba6e2164f4a9c742a97b114ec2
5
5
  SHA512:
6
- metadata.gz: e22a576504bde4153f303377b0e8c5ebe5ef5000e8f30d856bf07816919a8d099219d5fdda79680940d7ae97148156c40322662b52c56a402639e1115f0904c7
7
- data.tar.gz: 39760c4e0b721e407deccd8056ea3c0a4542ba21a93f69f209224452d868469e35afafe881c85c37045f6b3aadc9f3bdb57027ee32075cd186ba13fc844bab44
6
+ metadata.gz: 69f08ae45b2538b88c47fe4c2b01bf78312b2fc952414a21e5a733c1da4d41e459f3b3a0db9e184c4b1c56217ff44d917864c2ff9a4d78586b1488c80926fdf8
7
+ data.tar.gz: 1629f955e2b634eceff64074e821d3c93336e92d79b3d14ddc6681fdb4ea51ce08b7961a388122174b00ff8a8a63249588e960c7b0ab66032e32cc745964aedb
data/README.md CHANGED
@@ -88,8 +88,13 @@ unity_export(build_target: "...", new_version_code: "42")
88
88
  # increments the existing version code (Android) and build number (iOS)
89
89
  unity_export(build_target: "...", new_version_code: "increment")
90
90
 
91
- # combined usage of 'new_version' and 'new_version_code'
92
- 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")
93
98
  ```
94
99
 
95
100
  ### Using `unity_commit_version_bump`
@@ -105,16 +110,29 @@ unity_commit_version_bump
105
110
  ```
106
111
 
107
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
+
108
120
  ## Compatibility
109
121
 
110
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).
111
123
 
112
124
 
113
- ## Example
125
+ ## Ruby
114
126
 
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`.
127
+ Note that this plugin requires `Ruby 2.7.4`.
116
128
 
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.
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.
118
136
 
119
137
 
120
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.3"
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.3
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-27 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