@@ -95,12 +95,10 @@ jobs:
9595 cache : true
9696 version : 10
9797
98- # Change to '--frozen-lockfile' once this gets fixed:
99- # https://github.com/pnpm/action-setup/issues/40
10098 - name : Build frontend
10199 working-directory : web
102100 run : |
103- pnpm install --ignore-scripts --no- frozen-lockfile
101+ pnpm install --ignore-scripts --frozen-lockfile
104102 pnpm build
105103
106104 - name : Install Rust stable
@@ -141,45 +139,85 @@ jobs:
141139 with :
142140 fpm_args :
143141 " defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu=/usr/bin/defguard-proxy
144- defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service
142+ linux/ defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service
145143 example-config.toml=/etc/defguard/proxy.toml"
146- fpm_opts : " --architecture amd64 --output-type deb --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu.deb"
144+ fpm_opts :
145+ " --architecture amd64
146+ --output-type deb
147+ --version ${{ env.VERSION }}
148+ --package defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu.deb
149+ --before-install linux/preinst
150+ --after-install linux/postinst
151+ --before-remove linux/prerm
152+ --after-remove linux/postrm"
147153
148154 - name : Build aarch64 DEB package
149155 uses : defGuard/fpm-action@main
150156 with :
151157 fpm_args :
152158 " defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu=/usr/bin/defguard-proxy
153- defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service
159+ linux/ defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service
154160 example-config.toml=/etc/defguard/proxy.toml"
155- fpm_opts : " --architecture arm64 --output-type deb --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu.deb"
161+ fpm_opts :
162+ " --architecture arm64
163+ --output-type deb
164+ --version ${{ env.VERSION }}
165+ --package defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu.deb
166+ --before-install linux/preinst
167+ --after-install linux/postinst
168+ --before-remove linux/prerm
169+ --after-remove linux/postrm"
156170
157171 - name : Build x86_64 RPM package
158172 uses : defGuard/fpm-action@main
159173 with :
160174 fpm_args :
161175 " defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu=/usr/bin/defguard-proxy
162- defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service
176+ linux/ defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service
163177 example-config.toml=/etc/defguard/proxy.toml"
164- fpm_opts : " --architecture amd64 --output-type rpm --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu.rpm"
178+ fpm_opts :
179+ " --architecture amd64
180+ --output-type rpm
181+ --version ${{ env.VERSION }}
182+ --package defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu.rpm
183+ --before-install linux/preinst
184+ --after-install linux/postinst
185+ --before-remove linux/prerm
186+ --after-remove linux/postrm"
165187
166188 - name : Build aarch64 RPM package
167189 uses : defGuard/fpm-action@main
168190 with :
169191 fpm_args :
170192 " defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu=/usr/bin/defguard-proxy
171- defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service
193+ linux/ defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service
172194 example-config.toml=/etc/defguard/proxy.toml"
173- fpm_opts : " --architecture arm64 --output-type rpm --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu.rpm"
195+ fpm_opts :
196+ " --architecture arm64
197+ --output-type rpm
198+ --version ${{ env.VERSION }}
199+ --package defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu.rpm
200+ --before-install linux/preinst
201+ --after-install linux/postinst
202+ --before-remove linux/prerm
203+ --after-remove linux/postrm"
174204
175205 - name : Build FreeBSD package
176206 uses : defGuard/fpm-action@main
177207 with :
178208 fpm_args :
179209 " defguard-proxy-${{ env.VERSION }}-x86_64-unknown-freebsd=/usr/local/bin/defguard-proxy
180- defguard-proxy.service.freebsd =/usr/local/etc/rc.d/defguard-proxy
210+ freebsd/ defguard-proxy=/usr/local/etc/rc.d/defguard-proxy
181211 example-config.toml=/etc/defguard/proxy.toml"
182- fpm_opts : " --architecture amd64 --output-type freebsd --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}_x86_64-unknown-freebsd.pkg --freebsd-osversion '*' --depends openssl"
212+ fpm_opts :
213+ " --architecture amd64
214+ --output-type freebsd
215+ --version ${{ env.VERSION }}
216+ --package defguard-proxy-${{ env.VERSION }}_x86_64-unknown-freebsd.pkg
217+ --freebsd-osversion '*'
218+ --depends openssl
219+ --before-install freebsd/preinst
220+ --after-remove freebsd/postrm"
183221
184222 - name : Upload Linux x86_64 archive
185223 uses : shogo82148/actions-upload-release-asset@v1
0 commit comments