Use cp vs CopyFiles task due to macOS errors

pull/68/head
Joseph Donofry 6 years ago
parent 8bd63ba2b8
commit 28e40544c4
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
  1. 22
      .ci/azure-build.yml
  2. 4
      .ci/linux/deploy.sh
  3. 4
      .ci/macos/deploy.sh

@ -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:

@ -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

@ -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

Loading…
Cancel
Save