@@ -100,8 +100,8 @@ jobs:
100100 DOWNLOAD_URL=$(curl -sl --header "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/eclipse-esmf/esmf-aspect-model-editor-backend/releases/tags/v${{ github.event.inputs.release_version }} | jq -r '.assets[2].url')
101101 fi
102102
103- curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/octet-stream" $DOWNLOAD_URL > backend/ame-backend.sh
104- chmod 755 backend/ame-backend.sh
103+ curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/octet-stream" $DOWNLOAD_URL > backend/ame-backend-${{ github.event.inputs.release_version }}-mac
104+ chmod 755 backend/ame-backend-${{ github.event.inputs.release_version }}-mac
105105
106106 - name : Download aspect model service into project (Linux)
107107 if : matrix.os == 'ubuntu-20.04'
@@ -130,8 +130,8 @@ jobs:
130130 DOWNLOAD_URL=$(curl -sl --header "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/eclipse-esmf/esmf-aspect-model-editor-backend/releases/tags/v${{ github.event.inputs.release_version }} | jq -r '.assets[2].url')
131131 fi
132132
133- curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/octet-stream" $DOWNLOAD_URL > backend/ame-backend.sh
134- chmod 755 backend/ame-backend.sh
133+ curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/octet-stream" $DOWNLOAD_URL > backend/ame-backend-${{ github.event.inputs.release_version }}-linux
134+ chmod 755 backend/ame-backend-${{ github.event.inputs.release_version }}-linux
135135
136136 - name : Download aspect model service into project (Windows)
137137 if : matrix.os == 'windows-latest'
@@ -158,11 +158,6 @@ jobs:
158158
159159 # Remove the zip file
160160 Remove-Item -Path backend/ame-backend.zip
161-
162- # Rename the extracted .exe file
163- $oldName = "backend\ame-backend-${{ github.event.inputs.release_version }}-win.exe"
164- $newName = "ame-backend.exe"
165- Rename-Item -Path $oldName -NewName $newName
166161 } else {
167162 Write-Error "No zip file found."
168163 }
0 commit comments