mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Use cp vs CopyFiles task due to macOS errors
This commit is contained in:
parent
8bd63ba2b8
commit
28e40544c4
3 changed files with 20 additions and 10 deletions
|
@ -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…
Reference in a new issue