Skip to content

Commit

Permalink
Fix macos universal build
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Feb 13, 2024
1 parent 167ab3b commit ce360e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{steps.get_upload_url.outputs.url}}
asset_path: ./core/target/release/upload/authme-${{steps.version.outputs.prop}}-macos-x64.dmg
asset_name: authme-${{steps.version.outputs.prop}}-macos-x64.dmg
asset_path: ./core/target/release/upload/authme-${{steps.version.outputs.prop}}-macos-universal.dmg
asset_name: authme-${{steps.version.outputs.prop}}-macos-universal.dmg
asset_content_type: application/octet-stream

- name: Hash
Expand Down
6 changes: 3 additions & 3 deletions scripts/rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ if (os === "win32") {
}
} else if (os === "darwin") {
try {
copyFileSync(`./core/target/universal-apple-darwin/release/bundle/dmg/Authme_${version}_universal.dmg`, `./core/target/release/upload/authme-${version}-macos-x64.dmg`)
copyFileSync("./core/target/universal-apple-darwin/release/bundle/macos/Authme.app.tar.gz", `./core/target/release/upload/authme-${version}-macos-x64.tar.gz`)
copyFileSync("./core/target/universal-apple-darwin/release/bundle/macos/Authme.app.tar.gz.sig", `./core/target/release/upload/authme-${version}-macos-x64.sig`)
copyFileSync(`./core/target/universal-apple-darwin/release/bundle/dmg/Authme_${version}_universal.dmg`, `./core/target/release/upload/authme-${version}-macos-universal.dmg`)
copyFileSync("./core/target/universal-apple-darwin/release/bundle/macos/Authme.app.tar.gz", `./core/target/release/upload/authme-${version}-macos-universal.tar.gz`)
copyFileSync("./core/target/universal-apple-darwin/release/bundle/macos/Authme.app.tar.gz.sig", `./core/target/release/upload/authme-${version}-macos-universal.sig`)
} catch (err) {
console.log("File not found", err)
}
Expand Down

0 comments on commit ce360e5

Please sign in to comment.