Implemented release version install

This commit is contained in:
Bob Polis 2021-02-07 17:05:19 +01:00
parent f5bc7fcf65
commit 1e5a6651ea
2 changed files with 7 additions and 1 deletions

View File

@ -78,4 +78,6 @@ install: $(BIN)
$(INSTALL) -d $(BINDIR)
$(INSTALL) $(BIN) $(BINDIR)
$(INSTALL) -d $(MANDIR)$(MANSECTION)
$(INSTALL) $(MANPAGE) $(MANDIR)$(MANSECTION)
$(INSTALL) -m 444 $(MANPAGE) $(MANDIR)$(MANSECTION)
$(INSTALL) -d $(DATADIR)/$(BIN)/plugins
$(INSTALL) -m 444 plugins/* $(DATADIR)/$(BIN)/plugins/

View File

@ -86,7 +86,11 @@ bool handle_window_resize(const SDL_Event& event, bool quit) {
int main(int argc, const char * argv[]) {
try {
// gather plugins
#if DEBUG
sc::plugin<ScreensaverPlugin>::scan_plugins(sc::dirname(sc::tool_path(argv[0])) + "/plugins", "saver");
#else
sc::plugin<ScreensaverPlugin>::scan_plugins("/usr/local/share/screensaver/plugins", "saver");
#endif
std::unique_ptr<ScreensaverPlugin> saver;
int opt_char, opt_val;