feat(general): Force rebuild of status go at least once a day

fixes #4297
This commit is contained in:
Anthony Laibe 2021-12-15 10:13:06 +01:00 committed by Anthony Laibe
parent 18518607c7
commit d639219b94
2 changed files with 11 additions and 1 deletions

View File

@ -327,7 +327,7 @@ $(NIM_STATUS_CLIENT): $(NIM_SOURCES) | $(DOTHERSIDE) $(STATUSGO) $(KEYCARDGO) $(
@rpath/libkeycard.dylib \
bin/nim_status_client) || true)
nim_status_client: $(NIM_STATUS_CLIENT)
nim_status_client: force-rebuild-status-go $(NIM_STATUS_CLIENT)
_APPIMAGE_TOOL := appimagetool-x86_64.AppImage
APPIMAGE_TOOL := tmp/linux/tools/$(_APPIMAGE_TOOL)
@ -535,6 +535,9 @@ clean: | clean-common
rm -rf bin/* node_modules bottles/* pkg/* tmp/* $(STATUSGO) $(KEYCARDGO)
+ $(MAKE) -C vendor/DOtherSide/build --no-print-directory clean
force-rebuild-status-go:
bash ./scripts/force-rebuild-status-go.sh $(STATUSGO)
run: $(RUN_TARGET)
ICON_TOOL := node_modules/.bin/fileicon

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -eof pipefail
if test `find $1 -mmin +1440`; then
echo "forcing rebuild of status go"
rm $1
fi