Comments (10)
The idea was that the script is careful not to overwrite anything and leave it up to the user to explicitly delete unrecognized directories.
I'm bit hesitant to just continue if the directory is empty, since the directory could contain hidden files (at least .DS_Store is common) and it might be confusing if it seemingly only ignores empty directories sometimes.
I thought about adding a flag like --overwrite
but that adds a lot of complexity for a simple problem.
What do you think about deleting the directory during the travis installation if it's empty?
E.g. adding
install:
- rmdir /Applications/Unity || true
- sudo python2 .scripts/install-unity.py --package Unity 2017.1.1f1
I haven't tested this with travis but rmdir
only deletes empty directories and || true
should keep travis from aborting the installation if it's not.
from install-unity.
I realised there was already some code to test for almost empty directories during the cleanup, so I refactored it and the script now overwrites an existing but empty Unity directory (06165fc). Hope that works with travis.
from install-unity.
Wow, thanks, this just solved the issue perfectly.
Yay, Travis also started to packing new cache archive!
Thanks again for your time on this!
from install-unity.
Wow, thanks for the fast response!
It solved the issue.
Sound like a bit quirky workaround, I'd like to keep travis instruction count low.
But as it is a matter of a one-time setup anyway, I can easily go with that.
from install-unity.
Well, actually I could run installer just fine, but it invalidated Travis cache as I removed the /Applications/Unity
folder.
Could you please suggest a change (only a patch I'd use) in the script that I can safely apply to my instance? I would do it myself, but actually I don't speak python.
from install-unity.
I managed to cache /Applications/Unity
just fine, but when I start it, Unity.app just hangs for 10 minutes, then Travis kills the process due to inactivity (see log for this job).
Do you aware of any more Unity installation folder I should cache perhaps?
from install-unity.
As far as I can tell, Unity.pkg
only installs files to /Applications/Unity
. Maybe travis doesn't properly restore execution permissions for some files?
You could also try to get the Unity log from ~/Library/Logs/Unity/Editor.log
to see if it contains anything helpful.
from install-unity.
Thanks, I'll contact Travis then.
from install-unity.
Well, they did not addressed the issue, but I can see these folks - https://github.com/watson-developer-cloud/unity-sdk/blob/develop/.travis.yml - to set chmod
directly on their scripts.
Should I do the same with /Applications/Unity/MacOS/Unity.app
?
from install-unity.
Seems like the executable bit is set for all files in the Unity.app bundle, so you can apply chmod recursively:
sudo chmod -R ugo+x /Applications/Unity
from install-unity.
Related Issues (20)
- ERROR: Your Python's OpenSSL library is outdated. HOT 8
- Installation of iOS build support is broken HOT 3
- Feature request: Get path to Unity.app HOT 1
- Latest release 2018.3.0f2 fails to download HOT 3
- Automation: add quiet mode/reduce stdout HOT 4
- Running on a virtual machine fail HOT 1
- Add License file HOT 1
- Homebrew formula HOT 3
- url for 2019.3.0 seems to change HOT 4
- Installation Problem HOT 3
- Windows Support HOT 2
- Unable to specify install path HOT 3
- When running install: "ERROR: Cannot dynamically create an instance of type 'System.Security.Cryptography.MD5CryptoServiceProvider'" HOT 2
- [Feature Request] ensure the unity installation path matches the version exactly HOT 4
- "cannot create extraction directory" when installing android package HOT 1
- Could not find any installed versions of Unity, after the download is over HOT 3
- Unity Hub folder got renamed during install HOT 1
- File for package ios not found due to version mismatch HOT 1
- Bump to use android sdk 32 -> 33 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from install-unity.