summaryrefslogblamecommitdiff
path: root/build_appimg.sh
blob: aab5720bef92704a8eb8df5d3ec84f7d70fa6c6f (plain) (tree)
1
2
3
4
5
6
7
8
9
           
      
 





              
                                                             
 
           





             
 
                                                                                       




                                
 
     
                   
     
        


            
         





                                                    
                           

                              
                 

                    
 
#!/bin/bash
set -e

# clone repo

mkdir manaplus

cd manaplus

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

cd manaplus

# compile

dir=`pwd`

autoreconf -i

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

cd po
make update-gmo -j4
cd ..
make -j4
mkdir run
make install

# package
mkdir AppDir

cp -r $dir/run/share/games/manaplus/data AppDir/data
cp ../../AppRun AppDir/AppRun

../../squashfs-root/AppRun --appdir AppDir \
-d ../../manaplus.desktop \
-i ./data/icons/manaplus.svg \
-e ./run/bin/manaplus \
--output appimage

mv *.AppImage ../../