summaryrefslogblamecommitdiff
path: root/build_appimg_mana.sh
blob: 4d07245273725f762b1dafa2bcc2e7668c3e571f (plain) (tree)



































                                                                                        
                                          
                             
                                        
                                         

                                            
                                                         
                                                                    




                    
#!/bin/bash
set -e

# clone repo

mkdir manaplus

cd manaplus

git clone https://git.themanaworld.org/mana/mana.git mana

cd mana

# compile

dir=`pwd`

#autoreconf -i

#CPPFLAGS="-DTCP_THIN_LINEAR_TIMEOUTS -DTCP_THIN_DUPACK" ./configure --prefix=$dir/run \
#--datadir=$dir/run/share/games \
#--bindir=$dir/run/bin \
#--mandir=$dir/run/share/man \
#--enable-portable=yes

#cd po
#make update-gmo -j4
#cd ..
cmake -D CMAKE_INSTALL_PREFIX=$dir/run .
make -j4
mkdir run
make install

# package
mkdir AppDir

cp -r $dir/run/share/mana/data AppDir/data
cp ../../AppRun AppDir/AppRun
sed -i 's/manaplus/mana/g' AppDir/AppRun
sed -i 's/manaverse/mana/g' AppDir/AppRun

../../squashfs-root/AppRun --appdir AppDir \
-d ./run/share/applications/org.manasource.Mana.desktop \
-i ./run/share/icons/hicolor/scalable/apps/org.manasource.Mana.svg \
-e ./run/bin/mana \
--output appimage

mv *.AppImage ../../