Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 128 additions & 0 deletions codium-1.126.04524-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
#! /bin/bash

set -xe

COOKIE=$(mcookie|cut -c-8); grep -v V_GREP_ME $0 > /dev/shm/runme-$COOKIE.sh ; sleep 0.3; exec bash /dev/shm/runme-$COOKIE.sh
#TESTING=1

PKG=codium
VERSION=1.126.04524
BUILD=0

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

set -xe
umask 022

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

cp $0 $BUILD_TMPDIR; ME="$BUILD_TMPDIR/$(basename $0)"

exec </dev/null

mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
EOF
. $PREFIX/profile

export MAKEFLAGS="-j $(nproc)"

BUILDDIR=$PREFIX/build

mkdir -p $BUILDDIR
cd $BUILDDIR

false && {
# github actions node
# wget "https://nodejs.org/download/release/v18.15.0/node-v18.15.0-linux-x64.tar.gz"
# braucht spezielle node version und auch genau die Version

SRCURL="https://beehive.molgen.mpg.de/0ffa621330b60a0cac9bb6161caf5217/node-v22.21.1-linux-x64.tar.xz"
PKGARC=${SRCURL##*/}
PKGVER=${PKGARC%.*.*}
PKGVER=${PKGVER%-linux-x64}

test -e ${PKGARC} || wget -nv ${SRCURL}
test -d ${PKGVER} || mkdir -p ${PKGVER} && tar -x --directory=${PKGVER} -f ${PKGARC} --strip-components=1

PATH=${BUILDDIR}/${PKGVER}/bin:$PATH
export PATH
cd $PKGVER
npm install yarn
ln -sv ${BUILDDIR}/${PKGVER}/node_modules/.bin/yarn ${BUILDDIR}/${PKGVER}/bin/yarn
cd $BUILDDIR
}

#prepare BUILD env :-(
export SHOULD_BUILD="yes"
export SHOULD_BUILD_REH="no"
export CI_BUILD="no"
export OS_NAME="linux"
export VSCODE_ARCH="x64"
export VSCODE_QUALITY="stable"
export RELEASE_VERSION="${VERSION}"
export DISABLE_UPDATE="yes"

test -d vscodium || git clone https://github.com/VSCodium/vscodium.git
cd vscodium && git checkout $VERSION
( # disable autoUpdate and release Notes
cd ${PREFIX}/build/vscodium
# sed -ne '/^#Epatch:disableReleaseNotes/ s/^#Epatch:\S* // p' $ME > patches/disable-Update.patch
sed -ne '/^#Epatch:removeRustup/ s/^#Epatch:\S* // p' $ME | patch -p1 --verbose
# sed -ne '/^#Epatch:titlebarstyle/ s/^#Epatch:\S* // p' $ME > patches/TitlebarStyle.patch
)

. get_repo.sh
. build.sh

cp -avr VSCode-linux-x64/* $PREFIX
cd ${PREFIX}/bin && ln -s codium code

exit

# Patch Section do not trim Whitespaces

#Epatch:disableReleaseNotes diff --git a/src/vs/platform/update/common/update.config.contribution.ts b/src/vs/platform/update/common/update.config.contribution.ts
#Epatch:disableReleaseNotes index d96926b..dcb88ce 100644
#Epatch:disableReleaseNotes --- a/src/vs/platform/update/common/update.config.contribution.ts
#Epatch:disableReleaseNotes +++ b/src/vs/platform/update/common/update.config.contribution.ts
#Epatch:disableReleaseNotes @@ -82,7 +82,7 @@ configurationRegistry.registerConfiguration({
#Epatch:disableReleaseNotes },
#Epatch:disableReleaseNotes 'update.showReleaseNotes': {
#Epatch:disableReleaseNotes type: 'boolean',
#Epatch:disableReleaseNotes - default: true,
#Epatch:disableReleaseNotes + default: false,
#Epatch:disableReleaseNotes scope: ConfigurationScope.APPLICATION,
#Epatch:disableReleaseNotes description: localize('showReleaseNotes', "Show Release Notes after an update. The Release Notes are fetched from a Microsoft online service."),
#Epatch:disableReleaseNotes tags: ['usesOnlineServices']
#Epatch:titlebarstyle diff --git a/src/vs/workbench/electron-browser/desktop.contribution.ts b/src/vs/workbench/electron-browser/desktop.contribution.ts
#Epatch:titlebarstyle index 3517cc1..c657239 100644
#Epatch:titlebarstyle --- a/src/vs/workbench/electron-browser/desktop.contribution.ts
#Epatch:titlebarstyle +++ b/src/vs/workbench/electron-browser/desktop.contribution.ts
#Epatch:titlebarstyle @@ -238,7 +238,7 @@ import { registerWorkbenchContribution2, WorkbenchPhase } from '../common/contri
#Epatch:titlebarstyle 'window.titleBarStyle': {
#Epatch:titlebarstyle 'type': 'string',
#Epatch:titlebarstyle 'enum': ['native', 'custom'],
#Epatch:titlebarstyle - 'default': 'custom',
#Epatch:titlebarstyle + 'default': 'native',
#Epatch:titlebarstyle 'scope': ConfigurationScope.APPLICATION,
#Epatch:titlebarstyle 'description': localize('titleBarStyle', "Adjust the appearance of the window title bar to be native by the OS or custom. Changes require a full restart to apply."),
#Epatch:titlebarstyle },
#Epatch:removeRustup diff --git a/build_cli.sh b/build_cli.sh
#Epatch:removeRustup index 6998735..5abbe03 100755
#Epatch:removeRustup --- a/build_cli.sh
#Epatch:removeRustup +++ b/build_cli.sh
#Epatch:removeRustup @@ -94,7 +94,6 @@ else
#Epatch:removeRustup fi
#Epatch:removeRustup
#Epatch:removeRustup if [[ -n "${VSCODE_CLI_TARGET}" ]]; then
#Epatch:removeRustup - rustup target add "${VSCODE_CLI_TARGET}"
#Epatch:removeRustup
#Epatch:removeRustup cargo build --release --target "${VSCODE_CLI_TARGET}" --bin=code