Skip to content

Commit

Permalink
Fix EOL in startup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbata committed Oct 3, 2023
1 parent 454c6af commit 107f069
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.apache.tools.ant.filters.FixCrLfFilter

plugins {
id 'java'
id 'distribution'
Expand Down Expand Up @@ -36,24 +38,41 @@ jar {
}

task copyConfig(type: Copy) {
from 'src/main/config'
into 'build/libs'
from "$projectDir/src/main/config"
into "$buildDir/libs"
}

distributions {
main {
distributionBaseName = 'jpass'
contents {
from jar
from { 'src/main/config' }
from "$projectDir/src/main/config"
from("$projectDir/src/main/distribution") {
include 'jpass.sh'
include 'jpass.desktop'
include 'jpass.command'
include 'install.sh'
filter(FixCrLfFilter, eol: FixCrLfFilter.CrLf.newInstance('unix'))
}
from("$projectDir/src/main/distribution") {
include 'jpass.bat'
filter(FixCrLfFilter, eol: FixCrLfFilter.CrLf.newInstance('dos'))
}
from("$projectDir/src/main/distribution") {
include 'jpass.ico'
include 'jpass.png'
include 'jpass.svg'
include 'readme.txt'
}
into '/'
}
}
}

task createChecksum(type: org.gradle.crypto.checksum.Checksum, dependsOn: distZip) {
files = fileTree(dir: "${buildDir}/distributions").matching { include "*.zip" }
outputDir = new File("${buildDir}/distributions")
files = fileTree(dir: "$buildDir/distributions").matching { include "*.zip" }
outputDir = new File("$buildDir/distributions")
algorithm = org.gradle.crypto.checksum.Checksum.Algorithm.SHA256
appendFileNameToChecksum.set(true)
}
Expand Down Expand Up @@ -127,3 +146,4 @@ jacocoTestCoverageVerification.dependsOn jacocoTestReport
check.dependsOn jacocoTestCoverageVerification

createChecksum.finalizedBy updateScoopManifest

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.

0 comments on commit 107f069

Please sign in to comment.