Compare commits

...

5 Commits
1.4.2 ... 1.4.7

Author SHA1 Message Date
eyedeekay
ecfc447125 speedup run by validating only once 2024-03-07 22:37:47 -05:00
eyedeekay
238f3fd839 unzip un changes generation phase 2024-03-07 22:18:13 -05:00
eyedeekay
c01312a1a5 unzip un changes generation phase 2024-03-07 22:17:07 -05:00
eyedeekay
b72dd14310 unzip un changes generation phase 2024-03-07 21:41:15 -05:00
eyedeekay
64aac910a6 Fix changes 2024-03-07 21:23:38 -05:00
2 changed files with 10 additions and 6 deletions

View File

@@ -55,11 +55,11 @@ jobs:
id: download-artifact id: download-artifact
uses: dawidd6/action-download-artifact@v3 uses: dawidd6/action-download-artifact@v3
with: with:
skip_unpack: false skip_unpack: true
workflow: ant.yml workflow: ant.yml
if_no_artifact_found: fail if_no_artifact_found: fail
# remove .zip file extension # 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 "" | tee -a CHANGES.md
- run: echo "## Checksums" | tee -a CHANGES.md - run: echo "## Checksums" | tee -a CHANGES.md
- run: echo "" | tee -a CHANGES.md - run: echo "" | tee -a CHANGES.md
@@ -67,10 +67,10 @@ jobs:
- run: sha256sum * | tee -a CHANGES.md - run: sha256sum * | tee -a CHANGES.md
- run: echo '```' | tee -a CHANGES.md - run: echo '```' | tee -a CHANGES.md
- run: echo "" | tee -a CHANGES.md - run: echo "" | tee -a CHANGES.md
- run: echo '```' | tee -a changelog.txt - run: echo '```' | tee -a CHANGES.md
- run: file * | tee -a changelog.txt - run: file * | tee -a CHANGES.md
- run: echo '```' | tee -a changelog.txt - run: echo '```' | tee -a CHANGES.md
- run: echo "" | tee -a changelog.txt - run: echo "" | tee -a CHANGES.md
- name: Upload artifacts - name: Upload artifacts
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:

View File

@@ -36,6 +36,7 @@ public class I2PCommonBrowser {
private Properties prop = new Properties(); private Properties prop = new Properties();
public Logger logger = Logger.getLogger("browserlauncher"); public Logger logger = Logger.getLogger("browserlauncher");
private FileHandler fh; private FileHandler fh;
private boolean validated = false;
int CONFIGURED_TIMEOUT = 200; int CONFIGURED_TIMEOUT = 200;
public I2PCommonBrowser() { public I2PCommonBrowser() {
@@ -75,6 +76,8 @@ public class I2PCommonBrowser {
* @return None No return value. * @return None No return value.
*/ */
public void validateUserDirectory() { public void validateUserDirectory() {
if (validated)
return;
logger.info("Validating user directory"); logger.info("Validating user directory");
String userDir = System.getProperty("user.dir"); String userDir = System.getProperty("user.dir");
String userHome = System.getProperty("user.home"); String userHome = System.getProperty("user.home");
@@ -123,6 +126,7 @@ public class I2PCommonBrowser {
logger.info(defaultPathFile.getAbsolutePath()); logger.info(defaultPathFile.getAbsolutePath());
} }
System.setProperty("user.dir", defaultPathFile.getAbsolutePath()); System.setProperty("user.dir", defaultPathFile.getAbsolutePath());
validated = true;
} }
/** /**