Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ecfc447125 | ||
![]() |
238f3fd839 | ||
![]() |
c01312a1a5 | ||
![]() |
b72dd14310 | ||
![]() |
64aac910a6 |
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -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:
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user