File tree 4 files changed +1034
-1
lines changed
Filter options
4 files changed +1034
-1
lines changed
Original file line number Diff line number Diff line change 50
50
steps :
51
51
- uses : actions/checkout@v4
52
52
- uses : dtolnay/rust-toolchain@stable
53
+ - uses : cargo-bins/cargo-binstall@main
53
54
54
55
- name : Set up Environment
55
56
shell : bash
78
79
run : cp target/${{ matrix.platform.target }}/release/rustpython.exe target/rustpython-release-${{ runner.os }}-${{ matrix.platform.target }}.exe
79
80
if : runner.os == 'Windows'
80
81
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
+
81
107
- name : Upload Binary Artifacts
82
108
uses : actions/upload-artifact@v4
83
109
with :
@@ -140,7 +166,7 @@ jobs:
140
166
uses : actions/download-artifact@v4
141
167
with :
142
168
path : bin
143
- pattern : rustpython-release- *
169
+ pattern : rustpython-*
144
170
merge-multiple : true
145
171
146
172
- name : List Binaries
Original file line number Diff line number Diff line change @@ -92,6 +92,25 @@ rev = "2024.02.14"
92
92
[package .metadata .vcpkg .target ]
93
93
x86_64-pc-windows-msvc = { triplet = " x64-windows-static-md" , dev-dependencies = [" openssl" ] }
94
94
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
+
95
114
[workspace ]
96
115
resolver = " 2"
97
116
members = [
You can’t perform that action at this time.
0 commit comments