File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env ruby
2+
3+ tag = ARGV [ 0 ]
4+ puts "generate release checksums for #{ tag } "
5+
6+ windows_exe = "https://github.com/nervosnetwork/neuron/releases/download/#{ tag } /Neuron-#{ tag } -win-installer.exe"
7+ macos_zip = "https://github.com/nervosnetwork/neuron/releases/download/#{ tag } /Neuron-#{ tag } -mac.zip"
8+ macos_dmg = "https://github.com/nervosnetwork/neuron/releases/download/#{ tag } /Neuron-#{ tag } -mac.dmg"
9+ linux_appimage = "https://github.com/nervosnetwork/neuron/releases/download/#{ tag } /Neuron-#{ tag } -linux-x86_64.AppImage"
10+
11+ # TODO: Download binaries and calculate checksums
12+
13+ windows_exe_sha256 = "{WINDOWS_EXE_SHA256}"
14+ macos_zip_sha256 = "{MACOS_ZIP_SHA256}"
15+ macos_dmg_sha256 = "{MACOS_DMG_SHA256}"
16+ linux_appimage_sha256 = "{LINUX_APPIMAGE_SHA256}"
17+
18+ checksums = %(
19+ ### Downloads
20+
21+ OS | Arch | Package | SHA256 Checksum
22+ -- | -- | -- | --
23+ Windows | x64 | [exe](#{ windows_exe } ) | <code>#{ windows_exe_sha256 } </code>
24+ macOS | x64 | [zip](#{ macos_zip } ) | <code>#{ macos_zip_sha256 } </code>
25+ macOS | x64 | [DMG](#{ macos_dmg } ) | <code>#{ macos_dmg_sha256 } </code>
26+ Linux | x64 | [AppImage](#{ linux_appimage } ) | <code>#{ linux_appimage_sha256 } </code>
27+ )
28+
29+ puts checksums
You can’t perform that action at this time.
0 commit comments