Skip to content

Commit

Permalink
Merge pull request #153 from olblak/master
Browse files Browse the repository at this point in the history
Fix MSI file extension in publish.sh
  • Loading branch information
olblak authored Apr 8, 2020
2 parents 4dd18aa + 855bc7b commit 680d465
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions msi/publish/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ function init(){

function uploadPackage(){

sha256sum "${MSI}" | sed "s, .*, ${ARTIFACTNAME}.war," > "${MSI_SHASUM}"
cp ${ARTIFACTNAME}.msi ${MSI}

sha256sum "${MSI}" > "${MSI_SHASUM}"

cat "${MSI_SHASUM}"

# Local
rsync -avz "${MSI}" "${MSIDIR}/${VERSION}/${ARTIFACTNAME}.war"
rsync -avz "${MSI}" "${MSIDIR}/${VERSION}/"
rsync -avz "${MSI_SHASUM}" "${MSIDIR}/${VERSION}/"

# Remote
rsync -avz -e "ssh ${SSH_OPTS[*]}" "${MSI}" "$PKGSERVER:${MSIDIR}/${VERSION}/${ARTIFACTNAME}.war"
rsync -avz -e "ssh ${SSH_OPTS[*]}" "${MSI}" "$PKGSERVER:${MSIDIR}/${VERSION}/"
rsync -avz -e "ssh ${SSH_OPTS[*]}" "${MSI_SHASUM}" "$PKGSERVER:${MSIDIR}/${VERSION}/"
}

Expand Down

0 comments on commit 680d465

Please sign in to comment.