Skip to content

Commit

Permalink
Merge pull request #125 from mariux64/update-signal-desktop-to-1.35.1
Browse files Browse the repository at this point in the history
Signal: Update to 1.35.1
  • Loading branch information
pmenzel authored Sep 4, 2020
2 parents 3d33dc7 + b3e5727 commit 83651c5
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions signal-desktop-1.35.1-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#! /bin/bash

PKG=signal-desktop
VERSION=1.35.1
BUILD=0

PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi

. /pkg/node-12.13.0-0/profile

export PATH

set -xe
umask 022

node --version

BUILD_TMPDIR=/scratch/local2/$PKG-$VERSION-$BUILD.build.tmp
test -d $BUILD_TMPDIR && chmod -c -R u+rwx $BUILD_TMPDIR && rm -rf $BUILD_TMPDIR
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home

exec </dev/null

mkdir -p $PREFIX
cat >$PREFIX/profile <<EOF
PATH=$PREFIX/bin:\$PATH
EOF
. $PREFIX/profile

export MAKEFLAGS="-j $(nproc)"

BUILDDIR=$PREFIX/build

set -x

mkdir -p $BUILDDIR
cd $BUILDDIR

S=signal-desktop-${VERSION}

[ -d Signal-Desktop ] || git clone https://github.com/signalapp/Signal-Desktop.git

cd Signal-Desktop

# git pull --rebase

git checkout tags/v${VERSION}

# workaround https://github.com/yarnpkg/yarn/issues/7584
cat >$HOME/.yarnrc <<EOF0
unsafe-disable-integrity-migration false
EOF0

npm config set color false
npm --version
node --version
npm install yarn
./node_modules/yarn/bin/yarn versions
./node_modules/yarn/bin/yarn cache clean #workaround
./node_modules/yarn/bin/yarn install -f #workaround
#./node_modules/yarn/bin/yarn # install workaround
./node_modules/yarn/bin/yarn generate
./node_modules/yarn/bin/yarn build-release

find ${BUILDDIR} -perm -700 ! -perm -005 -exec chmod o+rx '{}' ';'

for e in signal-desktop \
'*.so' \
'*.pak' \
'*.bin' \
icudtl.dat \
locales \
resources \
; do
cp -ax ${BUILDDIR}/Signal-Desktop/release/linux-unpacked/$e ${PREFIX}/
done


mkdir -p ${PREFIX}/bin

cat >${PREFIX}/bin/signal-desktop <<__EOS__
#!/bin/sh
exec ${PREFIX}/signal-desktop $@
__EOS__

chmod 755 ${PREFIX}/bin/signal-desktop

0 comments on commit 83651c5

Please sign in to comment.