Use cp vs CopyFiles task due to macOS errors

This commit is contained in:
Joseph Donofry 2019-05-18 12:37:32 -04:00
parent 8bd63ba2b8
commit 28e40544c4
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
3 changed files with 20 additions and 10 deletions

View file

@ -15,16 +15,18 @@ steps:
./.ci/script.sh
sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
cp ./.ci/bintray-release.json .
- task: CopyFiles@2
inputs:
sourceFolder: $(Build.Repository.LocalPath) # Optional
contents: |
'**/nheko*.dmg'
'**/nheko*.AppImage'
targetFolder: $(Build.ArtifactStagingDirectory)
#cleanTargetFolder: false # Optional
overWrite: true # Optional
flattenFolders: true # Optional
env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
# - task: CopyFiles@2
# inputs:
# sourceFolder: $(Build.Repository.LocalPath) # Optional
# contents: |
# '**/nheko*.dmg'
# '**/nheko*.AppImage'
# targetFolder: $(Build.ArtifactStagingDirectory)
# #cleanTargetFolder: false # Optional
# overWrite: true # Optional
# flattenFolders: true # Optional
# Create a variable for build success
- bash: ls ${ARTIFACT_STAGING_DIRECTORY}
env:

View file

@ -54,3 +54,7 @@ if [ -n "$VERSION" ]; then
#mv nheko-*x86_64.AppImage nheko-${VERSION}-x86_64.AppImage
echo "nheko-${VERSION}-x86_64.AppImage"
fi
if [ -n "$ARTIFACT_STAGING_DIRECTORY" ]; then
cp "nheko-${VERSION}-x86_64.AppImage" "${ARTIFACT_STAGING_DIRECTORY}"
fi

View file

@ -28,3 +28,7 @@ dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
if [ -n "$VERSION" ]; then
mv nheko.dmg "nheko-${VERSION}.dmg"
fi
if [ -n "$ARTIFACT_STAGING_DIRECTORY" ]; then
cp "nheko-${VERSION}.dmg" "${ARTIFACT_STAGING_DIRECTORY}"
fi