create-unitypackage icon indicating copy to clipboard operation
create-unitypackage copied to clipboard

Building without the Unity project path?

Open INeatFreak opened this issue 3 years ago • 4 comments

Is it possible to still build the package without the project path? I mean when the target folder and git root isn't inside of an unity project. If so, how do I make that happen. I've been trying over 2 hours to get this to work but couldn't do it.

INeatFreak avatar Oct 08 '22 12:10 INeatFreak

Is it possible to still build the package without the project path? I mean when the target folder and git root isn't inside of an unity project. If so, how do I make that happen. I've been trying over 2 hours to get this to work but couldn't do it.

Did you ever get it to work? Or did you find a different solution? I'm currently trying to do the same.

PhantasmicDev avatar Jan 02 '23 04:01 PhantasmicDev

Nope, I've gave up as It didn't worth my time to edit the source code to support this.

INeatFreak avatar Jan 02 '23 11:01 INeatFreak

You can achieve it like this, you should make sure you cd into the project folder as well before creating the meta files. The issue in #7 is the same.

      - uses: actions/checkout@v2
      - run: |
          cd Demo
          echo "Assets/CrashKonijn.meta" > metaList
          find Assets/CrashKonijn/ -name \*.meta >> metaList
          echo "Contents of metaList:"
          cat metaList

      - uses: pCYSl5EDgo/create-unitypackage@master
        with:
          package-path: 'Package/Samples~/test/demo.unitypackage'
          include-files: Demo/metaList
          project-folder: 'Demo/'

In this case the project folder is the Demo folder.

crashkonijn avatar Nov 03 '23 09:11 crashkonijn

I hope v1.2.1 will help all of you.

pCYSl5EDgo avatar Jan 02 '24 14:01 pCYSl5EDgo