Git Product home page Git Product logo

Comments (10)

sttz avatar sttz commented on August 24, 2024 2

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.

sttz avatar sttz commented on August 24, 2024 1

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.

Geri-Borbas avatar Geri-Borbas commented on August 24, 2024 1

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.

Geri-Borbas avatar Geri-Borbas commented on August 24, 2024

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.

Geri-Borbas avatar Geri-Borbas commented on August 24, 2024

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.

Geri-Borbas avatar Geri-Borbas commented on August 24, 2024

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.

sttz avatar sttz commented on August 24, 2024

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.

Geri-Borbas avatar Geri-Borbas commented on August 24, 2024

Thanks, I'll contact Travis then.

from install-unity.

Geri-Borbas avatar Geri-Borbas commented on August 24, 2024

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.

sttz avatar sttz commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.