mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
5f2b5c3781
Linux icons are now only copied for build process, not for install process. They should be ignored for all platforms except RPM package build on Linux.
24 lines
459 B
Bash
Executable File
24 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
SPEC_FILE="$1"
|
|
DESKTOP_FILE="$2"
|
|
BUILD_DIRECTORY="$3"
|
|
|
|
RPM_BUILD_ROOT=~/rpmbuild
|
|
ARCH=`uname -m`
|
|
|
|
rpmdev-setuptree
|
|
|
|
cp -r $BUILD_DIRECTORY/Atom $RPM_BUILD_ROOT/BUILD
|
|
cp -r $BUILD_DIRECTORY/icons $RPM_BUILD_ROOT/BUILD
|
|
cp $SPEC_FILE $RPM_BUILD_ROOT/SPECS
|
|
cp ./atom.sh $RPM_BUILD_ROOT/BUILD
|
|
cp $DESKTOP_FILE $RPM_BUILD_ROOT/BUILD
|
|
|
|
rpmbuild -ba $SPEC_FILE
|
|
cp $RPM_BUILD_ROOT/RPMS/$ARCH/atom-*.rpm $BUILD_DIRECTORY/rpm
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|