mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
windows fixes
This commit is contained in:
parent
0a094332d2
commit
ba017b2fcb
7 changed files with 18 additions and 7 deletions
2
.github/workflows/package.yaml
vendored
2
.github/workflows/package.yaml
vendored
|
@ -7,7 +7,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-latest]
|
||||
os: [windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
|
|
@ -145,6 +145,11 @@ jlink {
|
|||
if(os.windows) {
|
||||
installerOptions += ['--win-per-user-install', '--win-dir-chooser', '--win-menu', '--win-shortcut']
|
||||
imageOptions += ['--icon', 'src/main/deploy/package/windows/sparrow.ico']
|
||||
installerType = "exe"
|
||||
}
|
||||
if(os.linux) {
|
||||
installerOptions += ['--linux-shortcut']
|
||||
imageOptions += ['--icon', 'src/main/deploy/package/linux/sparrow.png']
|
||||
}
|
||||
if(os.macOsX) {
|
||||
installerOptions += ['--mac-sign', '--mac-signing-key-user-name', 'Craig Raw (UPLVMSK9D7)']
|
||||
|
|
2
drongo
2
drongo
|
@ -1 +1 @@
|
|||
Subproject commit 17773f783e3d76262c578bc15e0b86d1d2fbebaa
|
||||
Subproject commit bd964e9bd2dca849f0f444d5a40ca65a5eb20fa8
|
BIN
src/main/deploy/package/linux/sparrow.png
Normal file
BIN
src/main/deploy/package/linux/sparrow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
|
@ -212,17 +212,19 @@ public class Hwi {
|
|||
hwiExecutable = tempExec;
|
||||
} else {
|
||||
InputStream inputStream;
|
||||
Path tempExecPath;
|
||||
if(platform == Platform.WINDOWS) {
|
||||
inputStream = Hwi.class.getResourceAsStream("/external/windows/hwi.exe");
|
||||
tempExecPath = Files.createTempFile(TEMP_FILE_PREFIX, null);
|
||||
} else {
|
||||
inputStream = Hwi.class.getResourceAsStream("/external/" + platform.getPlatformId().toLowerCase() + "/hwi");
|
||||
tempExecPath = Files.createTempFile(TEMP_FILE_PREFIX, null, PosixFilePermissions.asFileAttribute(ownerExecutableWritable));
|
||||
}
|
||||
|
||||
Path tempExecPath = Files.createTempFile(TEMP_FILE_PREFIX, null, PosixFilePermissions.asFileAttribute(ownerExecutableWritable));
|
||||
File tempExec = tempExecPath.toFile();
|
||||
//tempExec.deleteOnExit();
|
||||
tempExec.deleteOnExit();
|
||||
OutputStream tempExecStream = new BufferedOutputStream(new FileOutputStream(tempExec));
|
||||
ByteStreams.copy(new GZIPInputStream(inputStream), tempExecStream);
|
||||
ByteStreams.copy(inputStream, tempExecStream);
|
||||
inputStream.close();
|
||||
tempExecStream.flush();
|
||||
tempExecStream.close();
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
-fx-fill: #383a42;
|
||||
}
|
||||
|
||||
.status-bar .status-label {
|
||||
.status-bar, .status-bar .status-label {
|
||||
-fx-alignment: center-left;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,8 +5,12 @@
|
|||
<logger name="com.github.sarxos.webcam.ds.cgt.WebcamOpenTask" level="OFF"/>
|
||||
<logger name="com.github.sarxos.webcam.ds.cgt.WebcamCloseTask" level="OFF"/>
|
||||
|
||||
<define name="appDir" class="com.sparrowwallet.drongo.PropertyDefiner">
|
||||
<application>sparrow</application>
|
||||
</define>
|
||||
|
||||
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
||||
<file>${user.home}/.sparrow/sparrow.log</file>
|
||||
<file>${appDir}/sparrow.log</file>
|
||||
<encoder>
|
||||
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
|
||||
</encoder>
|
||||
|
|
Loading…
Reference in a new issue