Code Monkey home page Code Monkey logo

Comments (4)

shichen85 avatar shichen85 commented on May 26, 2024

Good find, though on Windows, if you monitor the background processes, you will see that the java.exe process is not exited. Not sure if it has any side-effects, so I have been killing it once Igor.exe exits.

from rubber.

clee2005 avatar clee2005 commented on May 26, 2024

So can you use Rubber to build iOS and Android exports? I understood it was only for Windows. If so how do you specify the export?

from rubber.

shichen85 avatar shichen85 commented on May 26, 2024

So can you use Rubber to build iOS and Android exports? I understood it was only for Windows. If so how do you specify the export?

If you look at src/cli.ts, you just need to specify the export-platform option, which includes: "windows" | "mac" | "linux" | "ios" | "android" | "ps4" | "xboxone" | "switch" | "html5"

from rubber.

 avatar commented on May 26, 2024

The above solution worked on my local machine but not my build servers

Here's a different workaround I came up with. It's definitely hacky, but it's sufficient for my use case

--- a/src/cli.ts
+++ b/src/cli.ts
@@ -186,4 +186,14 @@ cli.main(async (args, options) => {
         if (!igorErrors)
             cli.fatal(error.message);
     });
+    function kill(){
+        console.log("EXIT 0");
+        process.exit(0);
+    }
+    build.on("rawStdout", (data: string) => {
+        if(platform == "android" && data.includes("Igor Complete.")){
+            console.log("EXIT 0");
+            setTimeout(kill, 10000);
+        }
+    });
 });

from rubber.

Related Issues (14)

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.