Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
09af24a115 | ||
![]() |
5cbf441715 | ||
![]() |
d2e005a583 |
6
daily.sh
6
daily.sh
@@ -50,6 +50,6 @@ ZIPCHECKSUM=$(sha256sum "../I2P.zip")
|
||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../I2P.zip" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.zip"
|
||||
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../I2P.zip" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.zip"
|
||||
|
||||
TARCHECKSUM=$(sha256sum "i2p.i2p.jpackage-build.tar.gz")
|
||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2p.i2p.jpackage-build.tar.gz" -l "Upstream I2P Router source code $TARCHECKSUM" -t "$TODAYSDATE" -n "i2p.i2p.jpackage-build.tar.gz"
|
||||
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "i2p.i2p.jpackage-build.tar.gz" -l "Upstream I2P Router source code $TARCHECKSUM" -t "$TODAYSDATE" -n "i2p.i2p.jpackage-build.tar.gz"
|
||||
TARCHECKSUM=$(sha256sum "../../i2p.i2p.jpackage-build.tar.gz")
|
||||
echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../../i2p.i2p.jpackage-build.tar.gz" -l "Upstream I2P Router source code $TARCHECKSUM" -t "$TODAYSDATE" -n "i2p.i2p.jpackage-build.tar.gz"
|
||||
github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../../i2p.i2p.jpackage-build.tar.gz" -l "Upstream I2P Router source code $TARCHECKSUM" -t "$TODAYSDATE" -n "i2p.i2p.jpackage-build.tar.gz"
|
||||
|
@@ -32,7 +32,9 @@ import net.i2p.util.SystemVersion;
|
||||
*/
|
||||
public class WinLauncher {
|
||||
static Logger logger = Logger.getLogger("launcherlog");
|
||||
static WindowsUpdatePostProcessor wupp = null;
|
||||
static FileHandler fh;
|
||||
private static Router i2pRouter;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
setupLauncher();
|
||||
@@ -119,7 +121,7 @@ public class WinLauncher {
|
||||
*/
|
||||
System.setProperty("user.dir", programs.getAbsolutePath());
|
||||
|
||||
// wupp.i2pRouter = new Router(System.getProperties());
|
||||
i2pRouter = new Router(System.getProperties());
|
||||
logger.info("Router is configured");
|
||||
|
||||
Thread registrationThread = new Thread(REGISTER_UPP);
|
||||
@@ -128,8 +130,13 @@ public class WinLauncher {
|
||||
registrationThread.start();
|
||||
|
||||
setNotStarting();
|
||||
// wupp.i2pRouter.runRouter();
|
||||
RouterLaunch.main(args);
|
||||
// TODO: I actually did this once before, and reversed it for
|
||||
// some dumb reason I can't remember. But if I go back through
|
||||
// all the steps then I set up the router before I run it ^^
|
||||
// see above commented out `wupp` and I don't have to wait for
|
||||
// certain contexts to be ready anymore.
|
||||
i2pRouter.runRouter();
|
||||
// RouterLaunch.main(args);
|
||||
}
|
||||
|
||||
private static void setupLauncher() {
|
||||
@@ -146,7 +153,7 @@ public class WinLauncher {
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
File jrehome = javaHome();
|
||||
logger.info("jre home is: " + jrehome.getAbsolutePath());
|
||||
File appimagehome = appImageHome();
|
||||
@@ -298,9 +305,8 @@ public class WinLauncher {
|
||||
}
|
||||
|
||||
private static final Runnable REGISTER_UPP = () -> {
|
||||
// first wait for the RouterContext to appear
|
||||
RouterContext ctx;
|
||||
while ((ctx = (RouterContext)RouterContext.getCurrentContext()) == null) {
|
||||
while ((ctx = i2pRouter.getContext()) == null) {
|
||||
sleep(1000);
|
||||
}
|
||||
// then wait for the update manager
|
||||
|
Reference in New Issue
Block a user