Updated scripts for linux packaging

This commit is contained in:
Florian Rival
2014-08-19 23:03:25 +02:00
parent a90610ce57
commit e6427fe729
4 changed files with 19 additions and 6 deletions

View File

@@ -1,12 +1,14 @@
#!/bin/sh
echo 'Started the packaging process, using binaries in Binaries/Output/R'
echo 'Started the packaging process, using binaries in Binaries/Output/Release_Linux'
# Copy files from Release
sudo cp ../Output/Release/* -R debian-package/opt/game-develop
sudo mkdir -p debian-package/opt/game-develop
sudo cp ../Output/Release_Linux/* -R debian-package/opt/game-develop
# Make some tasks to ensure that the package is correct.
sudo chmod 0755 -R debian-package/opt/game-develop/*
sudo chown -R root:root debian-package
sudo chmod +x debian-package/usr/bin/game-develop
cd debian-package
sudo rm debian
sudo ln -s DEBIAN/ debian
@@ -18,3 +20,5 @@ fi;
#Build it.
dpkg -b debian-package ../Releases/game-develop_3.x.xx_amd64.deb
echo 'Done. Package should be at Binaries/Releases/game-develop_3.x.xx_amd64.deb'

View File

@@ -1,3 +1,12 @@
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms
dh_fixperms

0
Binaries/Packaging/debian-package/usr/bin/game-develop Normal file → Executable file
View File

View File

@@ -3,7 +3,7 @@
DIRECTORY="../Binaries/.build"
if [ ! -d "../Binaries/.build" ]; then
DIRECTORY="../Binaries/build"
fi
fi
if [ -d "$DIRECTORY" ]; then
cd "$DIRECTORY"
if [ -f "build.ninha" ]; then
@@ -15,11 +15,11 @@ if [ -d "$DIRECTORY" ]; then
else
echo "Unable to find your build directory, just make sure that GD is compiled in Release_Linux"
fi
cd ../../IDE/scripts/
sh ./UpdateHeadersAndPCHRelease.sh
cd ../../GDCpp/scripts/
sh ./CopyHeadersToGD.sh
cd ../../scripts
sh CopyWindowsToLinuxReleaseFiles.sh
cd ../GDJS/scripts/
sh ./CopyRuntimeToGD.sh
cd ../../Binaries/Packaging
sh ./PackageForUbuntu.sh
sh ./PackageForUbuntu.sh