timelapsenow/Timelapse.Linux/Makefile

27 lines
1.2 KiB
Makefile
Raw Normal View History

2022-05-21 13:44:29 +00:00
all: TimelapseNow-x86_64.AppImage TimelapseNow-armhf.AppImage TimelapseNow-aarch64.AppImage
TimelapseNow-x86_64.AppImage:
rm -r TimelapseNow.AppDir/usr/share/TimelapseNow/* > /dev/null 2> /dev/null || true
dotnet publish -c Release --self-contained -r linux-x64 -o TimelapseNow.AppDir/usr/share/TimelapseNow
sh build-tarball.sh x86_64
ARCH=x86_64 appimagetool TimelapseNow.AppDir/
mv Timelapse_Now-x86_64.AppImage TimelapseNow-x86_64.AppImage
TimelapseNow-armhf.AppImage:
rm -r TimelapseNow.AppDir/usr/share/TimelapseNow/* > /dev/null 2> /dev/null || true
dotnet publish -c Release --self-contained -r linux-arm -o TimelapseNow.AppDir/usr/share/TimelapseNow
sh build-tarball.sh armhf
ARCH=armhf appimagetool TimelapseNow.AppDir/
mv Timelapse_Now-armhf.AppImage TimelapseNow-armhf.AppImage
TimelapseNow-aarch64.AppImage:
rm -r TimelapseNow.AppDir/usr/share/TimelapseNow/* > /dev/null 2> /dev/null || true
dotnet publish -c Release --self-contained -r linux-arm64 -o TimelapseNow.AppDir/usr/share/TimelapseNow
sh build-tarball.sh aarch64
ARCH=aarch64 appimagetool TimelapseNow.AppDir/
mv Timelapse_Now-aarch64.AppImage TimelapseNow-aarch64.AppImage
clean:
rm *.AppImage
rm *.tar.gz