Updated the repo. Added the platform selection for bundling and the ability to specify additional parameters in .vscode/defold.sh such as email, auth, mobileprovisioning, bundle-format, etc.
Java, bob, dmengine and other necessary files will now be extracted directly from the Defold. The only setting you need to specify is the path to your Defold Editor folder.
Also excluded local lua debugger, now it is taken directly from the installed VSCode extension, which allows to keep it up to date.
It looks like the problem occurs at the build stage. The build reports success, but I don’t understand the error about deleting some temporary directory.
Are you sure you followed these instructions to install and configure bash on Windows?
Can anyone confirm that the script even works on Windows now? Unfortunately I don’t have Windows, but half a year ago I was getting confirmation that it worked.
Yes, i followed those instructions my default terminal is git bash. When i set back to powershell the defold.sh doesn’t execute. Maybe the problem caused by bash terminal, when i try to execute some command in bash terminal it doesn’t work.
Yes, you are right. After i changed the name of the project’s parent folder which was “Defold Projects” to “Defold_Projects” then it’s fixed. Thank you.
$ "/Applications/Defold 2.app/Contents/Resources/packages/jdk11.0.1-p1/bin/java" -cp "/Applications/Defold 2.app/Contents/Resources/packages/defold-71d178069a8fa37a4a52d3b44b98bd7596197e4e.jar" com.dynamo.bob.Bob distclean
Exception in thread "main" java.lang.RuntimeException: java.nio.file.NoSuchFileException: /Applications/Defold%202.app/Contents/Resources/packages/defold-71d178069a8fa37a4a52d3b44b98bd7596197e4e.jar
at com.dynamo.bob.ClassLoaderResourceScanner.scan(ClassLoaderResourceScanner.java:100)
at com.dynamo.bob.fs.ClassLoaderMountPoint.walk(ClassLoaderMountPoint.java:107)
at com.dynamo.bob.fs.AbstractFileSystem.walk(AbstractFileSystem.java:108)
at com.dynamo.bob.Project.findSources(Project.java:1594)
at com.dynamo.bob.Bob.setupProject(Bob.java:489)
at com.dynamo.bob.Bob.mainInternal(Bob.java:572)
at com.dynamo.bob.Bob.main(Bob.java:736)
Caused by: java.nio.file.NoSuchFileException: /Applications/Defold%202.app/Contents/Resources/packages/defold-71d178069a8fa37a4a52d3b44b98bd7596197e4e.jar
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1222)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:726)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:843)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:246)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:176)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:317)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:256)
at com.dynamo.bob.ClassLoaderResourceScanner.scanJar(ClassLoaderResourceScanner.java:68)
at com.dynamo.bob.ClassLoaderResourceScanner.scan(ClassLoaderResourceScanner.java:96)
... 6 more
Can someone please share a video or a more detailed version of doing this?
I couldn’t get it to work.
What i basically want to know is, how to use an external editor and not use VSCode or Atom as an IDE.
The error i get is
clojure.lang.ExceptionInfo: handler ‘:open’ in context ‘:global’ failed at ‘:run’ with message ‘Cannot run program “/Applications/Atom.app” (in directory “/Users/jeeveshmakker/Defold Files/Tutorial/Walking astronaut tutorial”): error=13, Permission denied’
java.io.IOException: Cannot run program “/Applications/Atom.app” (in directory “/Users/jeeveshmakker/Defold Files/Tutorial/Walking astronaut tutorial”): error=13, Permission denied
java.io.IOException: error=13, Permission denied
Then I recommend that you first start VSCode yourself with the project folder and then open the files, otherwise Defold will try to run VSCode with the Defold icon in the Dock as a separate application.