mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: Scripts for build packages
This commit is contained in:
parent
a4c163ba71
commit
f32e069ace
4 changed files with 87 additions and 0 deletions
30
install/create_packages.sh
Executable file
30
install/create_packages.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Set Double Commander version
|
||||
DC_VER=0.3.5
|
||||
# The new package will be saved here
|
||||
PACK_DIR="`dirs`"/linux/release
|
||||
|
||||
# Create temp dir for building
|
||||
BUILD_DC_TMP_DIR=/var/tmp/doublecmd-$DC_VER
|
||||
rm -rf $BUILD_DC_TMP_DIR
|
||||
svn export ../ $BUILD_DC_TMP_DIR
|
||||
|
||||
mkdir -p $BUILD_DC_TMP_DIR/install/linux
|
||||
cp linux/install.sh $BUILD_DC_TMP_DIR/install/linux
|
||||
cp linux/doublecmd.desktop $BUILD_DC_TMP_DIR/install/linux
|
||||
|
||||
cd $BUILD_DC_TMP_DIR
|
||||
# Build all components of Double Commander
|
||||
./_make.sh all
|
||||
|
||||
# Create *.rpm package
|
||||
|
||||
/usr/local/sbin/checkinstall -R --default --pkgname=doublecmd --pkgversion=0.3.5 --pkgrelease=alpha --pkglicense=GPL --pkggroup=Applications/File --maintainer=Alexx2000@mail.ru --nodoc --pakdir=$PACK_DIR $BUILD_DC_TMP_DIR/install/linux/install.sh
|
||||
|
||||
# Create *.deb package
|
||||
|
||||
/usr/local/sbin/checkinstall -D --default --pkgname=doublecmd --pkgversion=$DC_VER --pkglicense=GPL --pkggroup=Applications/File --maintainer=Alexx2000@mail.ru --nodoc --pakdir=$PACK_DIR $BUILD_DC_TMP_DIR/install/linux/install.sh
|
||||
|
||||
# Clean DC build dir
|
||||
rm -rf $BUILD_DC_TMP_DIR
|
||||
2
install/description-pak
Executable file
2
install/description-pak
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
Double Commander is a cross platform open source file manager with two panels side by side.
|
||||
It is inspired by Total Commander and features some new ideas.
|
||||
9
install/linux/doublecmd.desktop
Executable file
9
install/linux/doublecmd.desktop
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Double Commander
|
||||
Comment=Double Commander is a cross platform open source file manager with two panels side by side.
|
||||
Exec=doublecmd
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=doublecmd.png
|
||||
Categories=Application;File Management;Utility;System;
|
||||
46
install/linux/install.sh
Executable file
46
install/linux/install.sh
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
#!/bin/sh
|
||||
DC_INSTALL_DIR=/opt/doublecmd
|
||||
mkdir -p $DC_INSTALL_DIR
|
||||
|
||||
mkdir -p $DC_INSTALL_DIR/plugins
|
||||
# WCX plugins directories
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wcx
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wcx/cpio
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wcx/deb
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wcx/rpm
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wcx/unrar
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wcx/unbz2
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wcx/zip
|
||||
# WDX plugins directories
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wdx
|
||||
mkdir -p $DC_INSTALL_DIR/plugins/wdx/rpm_wdx
|
||||
|
||||
# Copy directories
|
||||
cp -a language $DC_INSTALL_DIR/
|
||||
cp -a doc $DC_INSTALL_DIR/
|
||||
cp -a pixmaps $DC_INSTALL_DIR/
|
||||
# Copy files
|
||||
cp -a doublecmd $DC_INSTALL_DIR/
|
||||
cp -a doublecmd.ini $DC_INSTALL_DIR/
|
||||
cp -a doublecmd.ext $DC_INSTALL_DIR/
|
||||
cp -a editor.col $DC_INSTALL_DIR/
|
||||
cp -a twilight.col $DC_INSTALL_DIR/
|
||||
cp -a pixmaps.txt $DC_INSTALL_DIR/
|
||||
cp -a default.bar $DC_INSTALL_DIR/
|
||||
|
||||
# copy plugins
|
||||
# WCX
|
||||
cp -a plugins/wcx/cpio/lib/cpio.wcx $DC_INSTALL_DIR/plugins/wcx/cpio/
|
||||
cp -a plugins/wcx/deb/lib/deb.wcx $DC_INSTALL_DIR/plugins/wcx/deb/
|
||||
cp -a plugins/wcx/rpm/lib/rpm.wcx $DC_INSTALL_DIR/plugins/wcx/rpm/
|
||||
cp -a plugins/wcx/unrar/lib/unrar.wcx $DC_INSTALL_DIR/plugins/wcx/unrar/
|
||||
cp -a plugins/wcx/unbz2/lib/unbz2.wcx $DC_INSTALL_DIR/plugins/wcx/unbz2/
|
||||
cp -a plugins/wcx/zip/lib/zip.wcx $DC_INSTALL_DIR/plugins/wcx/zip/
|
||||
# WDX
|
||||
cp -a plugins/wdx/rpm_wdx/lib/rpm_wdx.wcx $DC_INSTALL_DIR/plugins/wdx/rpm_wdx/
|
||||
|
||||
# Create symlink and desktop files
|
||||
ln -sf $DC_INSTALL_DIR/doublecmd /usr/bin/doublecmd
|
||||
install -m 644 icon.png /usr/share/pixmaps/doublecmd.png
|
||||
install -m 644 install/linux/doublecmd.desktop /usr/share/applications/doublecmd.desktop
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue