Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
Added Windows packaging matching inkscape 0.92.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jürgen Weigert committed Sep 2, 2018
1 parent d430651 commit 0aff3e8
Show file tree
Hide file tree
Showing 15 changed files with 74 additions and 21,076 deletions.
4 changes: 2 additions & 2 deletions distribute/deb/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ mkdir $tmp
cp description-pak files
cd files
fakeroot checkinstall --fstrans --reset-uid --type debian \
--install=no -y --pkgname $name --pkgversion $vers --arch all \
--install=no -y --pkgname $name --pkgversion $vers --pkgrelease $(date +%Y%m%d) --arch all \
--pkglicense LGPL --pkggroup other --pakdir ../$tmp --pkgsource $url \
--pkgaltsource "http://fablab-nuernberg.de" \
--maintainer "'Juergen Weigert (juewei@fabmail.org)'" \
--maintainer "'Juergen Weigert (juergen@fabmail.org)'" \
--requires "'$requires'" make install \
-e PREFIX=/usr || { echo "error"; exit 1; }

25 changes: 16 additions & 9 deletions distribute/distribute.sh
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
#!/bin/bash

cd $(dirname $0)

echo "Determining Version:"
VERSION=$(sed -ne 's@.*version\s\([a-z0-9\.]*\).*@\1@pi' ../centerline-trace.inx)
echo "Version is: \"$VERSION\""
name=inkscape-centerline-trace
if [ -d $name ]
then
echo "Removing leftover files"
rm -rf $name
fi
rm -rf $name

echo "Copying contents ..."
mkdir $name
mkdir -p $name
cp ../README.md $name/README
cp ../LICENSE* $name/
cp ../centerline-trace-poster.svg $name/
cp ../*.py ../*.inx ../Makefile $name/


echo "****************************************************************"
echo "Ubuntu Version: For Building you must have checkinstall and dpkg"
echo "Ubuntu Version: needs checkinstall and dpkg"
echo "Build Ubuntu Version (Y/n)?"
read answer
if [ "$answer" != "n" ]
then
if [ "$answer" != "n" ]; then
mkdir -p deb/files
cp -a $name/* deb/files
(cd deb && sh ./dist.sh $name $VERSION)
fi

echo "****************************************************************"
echo "Windows Version: needs makensis"
echo "Build Windows Version (Y/n)?"
read answer
if [ "$answer" != "n" ]; then
(cd win && sh ./dist.sh $name $VERSION)
fi


echo "Built packages are in distribute/out :"
ls -la out
Expand Down
21 changes: 21 additions & 0 deletions distribute/win/dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#! /bin/bash
# Make a windows binary

disttop=$(readlink -e $(dirname $0)) # abspath(dir)

APP_NAME=$1
APP_VERSION=$2

if [ -z "$APP_VERSION" ]; then
echo "Usage: $0 APP_NAME APP_VERSION"
exit 1
fi

cd $disttop
makensis -DVERSION=$APP_VERSION-$(date +%Y%m%d) $APP_NAME.nsi
mkdir -p ../out
zip=../out/$APP_NAME-$APP_VERSION-$(date +%Y%m%d)-win64-setup.zip
rm -f $zip
zip -r $zip $APP_NAME-*-setup.exe
cp $APP_NAME-*-setup.exe ../out

35 changes: 35 additions & 0 deletions distribute/win/inkscape-centerline-trace.nsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
; centerline-trace.nsi

!ifndef VERSION
!define VERSION 'anonymous-build'
!endif

Name "inkscape-centerline-trace"
AllowRootDirInstall true
ShowInstDetails show

Caption "inkscape-centerline-trace ${VERSION} extension"
OutFile "inkscape-centerline-trace-${VERSION}-setup.exe"
InstallDir "C:\Program Files\Inkscape\share\extensions"

RequestExecutionLevel admin

;--------------------------------

; Pages

Page directory
Page instfiles

;--------------------------------

Section ""

; Set output path to the installation directory.
SetOutPath $INSTDIR

; Put file there
File /oname=centerline-trace.py "../../centerline-trace.py"
File /oname=centerline-trace.inx "../../centerline-trace.inx"

SectionEnd
Loading

0 comments on commit 0aff3e8

Please sign in to comment.