Browse Source

Strip binary when making distributable

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
3dbdd7a334
2 changed files with 7 additions and 2 deletions
  1. +5
    -2
      plugin.mk
  2. +2
    -0
      src/app/ModuleBrowser.cpp

+ 5
- 2
plugin.mk View File

@@ -25,8 +25,6 @@ ifeq ($(ARCH), win)
TARGET = plugin.dll
endif

DISTRIBUTABLES += $(TARGET)


all: $(TARGET)

@@ -38,7 +36,12 @@ clean:
dist: all
rm -rf dist
mkdir -p dist/$(SLUG)
# Strip and copy plugin binary
cp $(TARGET) dist/$(SLUG)/
strip -s dist/$(SLUG)/$(TARGET)
# Copy distributables
cp -R $(DISTRIBUTABLES) dist/$(SLUG)/
# Create ZIP package
cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG)

.PHONY: clean dist

+ 2
- 0
src/app/ModuleBrowser.cpp View File

@@ -164,6 +164,8 @@ struct ModelItem : BrowserListItem {

void onAction(EventAction &e) override {
ModuleWidget *moduleWidget = model->createModuleWidget();
if (!moduleWidget)
return;
gRackWidget->moduleContainer->addChild(moduleWidget);
// Move module nearest to the mouse position
moduleWidget->box.pos = gRackWidget->lastMousePos.minus(moduleWidget->box.size.div(2));


Loading…
Cancel
Save