File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 steps :
5151 - uses : actions/checkout@v4
5252 - uses : dtolnay/rust-toolchain@stable
53+ - uses : cargo-bins/cargo-binstall@main
5354
5455 - name : Set up Environment
5556 shell : bash
7879 run : cp target/${{ matrix.platform.target }}/release/rustpython.exe target/rustpython-release-${{ runner.os }}-${{ matrix.platform.target }}.exe
7980 if : runner.os == 'Windows'
8081
82+ - name : Install cargo-packager
83+ run : cargo binstall cargo-packager
84+
85+ - name : Generate MSI
86+ if : runner.os == 'Windows'
87+ run : cargo packager -f wix --release -o installer
88+
89+ - name : Upload MSI
90+ if : runner.os == 'Windows'
91+ uses : actions/upload-artifact@v4
92+ with :
93+ name : rustpython-installer-msi-${{ runner.os }}-${{ matrix.platform.target }}
94+ path : installer/*.msi
95+
96+ - name : Generate DMG
97+ if : runner.os == 'macOS'
98+ run : cargo packager -f dmg --release -o installer
99+
100+ - name : Upload DMG
101+ if : runner.os == 'macOS'
102+ uses : actions/upload-artifact@v4
103+ with :
104+ name : rustpython-installer-dmg-${{ runner.os }}-${{ matrix.platform.target }}
105+ path : installer/*.dmg
106+
81107 - name : Upload Binary Artifacts
82108 uses : actions/upload-artifact@v4
83109 with :
@@ -140,7 +166,7 @@ jobs:
140166 uses : actions/download-artifact@v4
141167 with :
142168 path : bin
143- pattern : rustpython-release- *
169+ pattern : rustpython-*
144170 merge-multiple : true
145171
146172 - name : List Binaries
Original file line number Diff line number Diff line change @@ -92,6 +92,25 @@ rev = "2024.02.14"
9292[package .metadata .vcpkg .target ]
9393x86_64-pc-windows-msvc = { triplet = " x64-windows-static-md" , dev-dependencies = [" openssl" ] }
9494
95+ [package .metadata .packager ]
96+ product-name = " RustPython"
97+ identifier = " com.rustpython.rustpython"
98+ description = " An open source Python 3 interpreter written in Rust"
99+ homepage = " https://rustpython.github.io/"
100+ license_file = " LICENSE"
101+ authors = [" RustPython Team" ]
102+ publisher = " RustPython Team"
103+ resources = [" LICENSE" , " README.md" , " Lib" ]
104+ icons = [" 32x32.png" ]
105+
106+ [package .metadata .packager .nsis ]
107+ installer_mode = " both"
108+ template = " installer-config/installer.nsi"
109+
110+ [package .metadata .packager .wix ]
111+ template = " installer-config/installer.wxs"
112+
113+
95114[workspace ]
96115resolver = " 2"
97116members = [
You can’t perform that action at this time.
0 commit comments