@@ -45,18 +45,44 @@ jobs:
45
45
- name : Build
46
46
run : cargo build --features self_update --release
47
47
48
- - name : Compress Output (Linux & macOS)
49
- if : contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
48
+ - name : Build .deb Package (Linux)
49
+ if : contains(matrix.os, 'ubuntu')
50
+ run : cargo bundle --release
51
+
52
+ - name : Build .msi Package (Windows)
53
+ if : contains(matrix.os, 'windows')
54
+ run : cargo wix --features self_update
55
+
56
+ - name : Compress Output (Linux Binary)
57
+ if : contains(matrix.os, 'ubuntu')
50
58
run : |
51
59
cd target/release
52
- zip -r serial-monitor-${{ matrix.target }}.zip *
60
+ zip -r serial-monitor-${{ matrix.target }}.zip serial-monitor
61
+
62
+ - name : Compress Output (Linux .deb)
63
+ if : contains(matrix.os, 'ubuntu')
64
+ run : |
65
+ cd target/release/bundle/deb
66
+ zip serial-monitor-${{ matrix.target }}.deb.zip *.deb
67
+
68
+ - name : Compress Output (macOS .app Bundle)
69
+ if : contains(matrix.os, 'macos')
70
+ run : |
71
+ cd target/release/bundle/osx
72
+ zip -r serial-monitor-${{ matrix.target }}.app.zip Serial\ Monitor.app
73
+
74
+ - name : Compress Output (Windows .exe)
75
+ if : contains(matrix.os, 'windows')
76
+ run : |
77
+ Compress-Archive -Path target/release/serial-monitor.exe -DestinationPath serial-monitor-${{ matrix.target }}.exe.zip
53
78
54
- - name : Compress Output (Windows)
79
+ - name : Compress Output (Windows .msi )
55
80
if : contains(matrix.os, 'windows')
56
81
run : |
57
- Compress-Archive -Path target/release/* -DestinationPath serial-monitor-${{ matrix.target }}.zip
82
+ cd target/wix
83
+ Compress-Archive -Path *.msi -DestinationPath serial-monitor-${{ matrix.target }}.msi.zip
58
84
59
- - name : Upload Artifact
85
+ - name : Upload Artifacts
60
86
61
87
env :
62
88
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments