Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ecfc447125 | |||
238f3fd839 | |||
c01312a1a5 | |||
b72dd14310 |
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -55,11 +55,11 @@ jobs:
|
||||
id: download-artifact
|
||||
uses: dawidd6/action-download-artifact@v3
|
||||
with:
|
||||
skip_unpack: false
|
||||
skip_unpack: true
|
||||
workflow: ant.yml
|
||||
if_no_artifact_found: fail
|
||||
# remove .zip file extension
|
||||
- run: for f in *.zip; do mv "$f" "${f%.zip}"; done
|
||||
- run: for f in *.zip; do unzip "$f"; rm "$f"; done
|
||||
- run: echo "" | tee -a CHANGES.md
|
||||
- run: echo "## Checksums" | tee -a CHANGES.md
|
||||
- run: echo "" | tee -a CHANGES.md
|
||||
|
@ -36,6 +36,7 @@ public class I2PCommonBrowser {
|
||||
private Properties prop = new Properties();
|
||||
public Logger logger = Logger.getLogger("browserlauncher");
|
||||
private FileHandler fh;
|
||||
private boolean validated = false;
|
||||
int CONFIGURED_TIMEOUT = 200;
|
||||
|
||||
public I2PCommonBrowser() {
|
||||
@ -75,6 +76,8 @@ public class I2PCommonBrowser {
|
||||
* @return None No return value.
|
||||
*/
|
||||
public void validateUserDirectory() {
|
||||
if (validated)
|
||||
return;
|
||||
logger.info("Validating user directory");
|
||||
String userDir = System.getProperty("user.dir");
|
||||
String userHome = System.getProperty("user.home");
|
||||
@ -123,6 +126,7 @@ public class I2PCommonBrowser {
|
||||
logger.info(defaultPathFile.getAbsolutePath());
|
||||
}
|
||||
System.setProperty("user.dir", defaultPathFile.getAbsolutePath());
|
||||
validated = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user