Compare commits

...

6 Commits
1.4.1 ... 1.4.7

Author SHA1 Message Date
ecfc447125 speedup run by validating only once 2024-03-07 22:37:47 -05:00
238f3fd839 unzip un changes generation phase 2024-03-07 22:18:13 -05:00
c01312a1a5 unzip un changes generation phase 2024-03-07 22:17:07 -05:00
b72dd14310 unzip un changes generation phase 2024-03-07 21:41:15 -05:00
64aac910a6 Fix changes 2024-03-07 21:23:38 -05:00
246c27627b don't skip unpacking 2024-03-07 21:21:14 -05:00
2 changed files with 9 additions and 5 deletions

View File

@ -59,7 +59,7 @@ jobs:
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
@ -67,10 +67,10 @@ jobs:
- run: sha256sum * | tee -a CHANGES.md
- run: echo '```' | tee -a CHANGES.md
- run: echo "" | tee -a CHANGES.md
- run: echo '```' | tee -a changelog.txt
- run: file * | tee -a changelog.txt
- run: echo '```' | tee -a changelog.txt
- run: echo "" | tee -a changelog.txt
- run: echo '```' | tee -a CHANGES.md
- run: file * | tee -a CHANGES.md
- run: echo '```' | tee -a CHANGES.md
- run: echo "" | tee -a CHANGES.md
- name: Upload artifacts
uses: ncipollo/release-action@v1
with:

View File

@ -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;
}
/**