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

View file

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