mkdir -p $(@:.tar.gz=)
mv $(@D)/$(notdir $(2:.tar.gz=)) $(@:.tar.gz=)/nw
cp -a $1 $(@:.tar.gz=)/nw/package.nw
- cp -a tools/nw-linux-wrapper $(@:.tar.gz=)/`echo $(notdir $1) | sed -E 's/-[^-]+$$//'`
+ cp -a tools/nw-linux-wrapper $(@:.tar.gz=)/`echo $(notdir $1) | sed -E 's/_.+//'`
$(RM) $(@:.tar.gz=)/nw/nwsnapshot
mv $(@:.tar.gz=)/nw/credits.html $(@:.tar.gz=)/nw/node-webkit\ credits.html
tar -czf $@ -C $(@D) $(@F:.tar.gz=)
mv $(@:.zip=)/credits.html $(@:.zip=)/node-webkit\ credits.html
cp -a $< $(@:.zip=)/package.nw
cp -a $(node-webkit-directx) $(@:.zip=)
- mv $(@:.zip=)/nw.exe $(@:.zip=)/`echo $(notdir $1) | sed -E 's/-[^-]+$$/.exe/'`
+ mv $(@:.zip=)/nw.exe $(@:.zip=)/`echo $(notdir $1) | sed -E 's/_.+/.exe/'`
cd $(@D) && $(ZIP) -r $(@F) $(@F:.zip=)
$(RM) -r $(@:.zip=)
endef