Packaging
=========
-1) have a go tree at $GOROOT
-2) make sure $GOBIN=$GOROOT\bin is empty
-3) select appropriate version "hg up -r ..."
-4) build go "cd $GOROOT/src; ./all.bash"
-5) create Windows packages "cd $GOROOT/misc/windows; ./package.bash"
-
-
-
-
+- have a go tree at $GOROOT
+- make sure $GOBIN=$GOROOT\bin or is empty
+- make sure $GOARCH=386 or $GOARCH=amd64
+- select appropriate version "hg up -r ..."
+- build go "cd $GOROOT/src; ./all.bash"
+- create Windows packages "cd $GOROOT/misc/windows; ./package.bash"
cp -a ../../bin go/bin
echo "%%%%% Starting zip packaging %%%%%" 1>&2
-7za a -tzip -mx=9 gowin386"_"$ver.zip "go/" >/dev/null
+7za a -tzip -mx=9 gowin$GOARCH"_"$ver.zip "go/" >/dev/null
echo "%%%%% Starting installer packaging %%%%%" 1>&2
-"$ISCC" //dAppName=Go //dAppVersion=386"_"$ver //dAppNameLower=go installer.iss >/dev/null
+"$ISCC" //dAppName=Go //dAppVersion=$GOARCH"_"$ver //dAppNameLower=go installer.iss >/dev/null