-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add patch to remove rustup command in build script add patch to change default titlebarstyle from custom to native
- Loading branch information
Showing
1 changed file
with
210 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
#! /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.100.33714 | ||
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 | ||
|
||
true && { | ||
# 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/a572996751fbd43b718d8859c58d318a/node-v20.18.0-linux-x64.tar.gz" | ||
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}" | ||
|
||
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:disableUpdate/ s/^#Epatch:\S* // p' $ME | patch -p1 --verbose | ||
sed -ne '/^#Epatch:removeRustup/ s/^#Epatch:\S* // p' $ME | patch -p1 --verbose | ||
sed -ne '/^#Epatch:titlebarstyle/ s/^#Epatch:\S* // p' $ME | patch -p1 --verbose | ||
) | ||
|
||
|
||
. get_repo.sh | ||
. build.sh | ||
|
||
#./build.sh | ||
|
||
cp -avr VSCode-linux-x64/* $PREFIX | ||
cd ${PREFIX}/bin && ln -s codium code | ||
|
||
exit | ||
|
||
# Patch Section do not trim Whitespaces | ||
|
||
#Epatch:disableUpdate diff --git a/update_settings.sh b/update_settings.sh | ||
#Epatch:disableUpdate index 2b6ac1f..6d20430 100755 | ||
#Epatch:disableUpdate --- a/update_settings.sh | ||
#Epatch:disableUpdate +++ b/update_settings.sh | ||
#Epatch:disableUpdate @@ -2,8 +2,14 @@ | ||
#Epatch:disableUpdate | ||
#Epatch:disableUpdate DEFAULT_TRUE="'default': true" | ||
#Epatch:disableUpdate DEFAULT_FALSE="'default': false" | ||
#Epatch:disableUpdate +DEFAULT_TRUE_R="default: true" | ||
#Epatch:disableUpdate +DEFAULT_FALSE_R="default: false" | ||
#Epatch:disableUpdate +DEFAULT_TRUE_U="default: 'default'" | ||
#Epatch:disableUpdate +DEFAULT_FALSE_U="default: 'none'" | ||
#Epatch:disableUpdate DEFAULT_ON="'default': TelemetryConfiguration.ON" | ||
#Epatch:disableUpdate DEFAULT_OFF="'default': TelemetryConfiguration.OFF" | ||
#Epatch:disableUpdate +SHOW_RELEASE_NOTES="'update.showReleaseNotes':" | ||
#Epatch:disableUpdate +UPDATE_MODE="'update.mode':" | ||
#Epatch:disableUpdate TELEMETRY_CRASH_REPORTER="'telemetry.enableCrashReporter':" | ||
#Epatch:disableUpdate TELEMETRY_CONFIGURATION=" TelemetryConfiguration.ON" | ||
#Epatch:disableUpdate NLS=workbench.settings.enableNaturalLanguageSearch | ||
#Epatch:disableUpdate @@ -29,7 +35,7 @@ update_setting () { | ||
#Epatch:disableUpdate if [[ "${line}" == *"${SETTING}"* ]]; then | ||
#Epatch:disableUpdate IN_SETTING=1 | ||
#Epatch:disableUpdate fi | ||
#Epatch:disableUpdate - if [[ ("${line}" == *"${DEFAULT_TRUE}"* || "${line}" == *"${DEFAULT_ON}"*) && "${IN_SETTING}" == "1" ]]; then | ||
#Epatch:disableUpdate + if [[ ("${line}" == *"${DEFAULT_TRUE}"* || "${line}" == *"${DEFAULT_ON}"* || "${line}" == *"${DEFAULT_TRUE_R}"* || "${line}" == *"${DEFAULT_TRUE_U}"*) && "${IN_SETTING}" == "1" ]]; then | ||
#Epatch:disableUpdate FOUND=1 | ||
#Epatch:disableUpdate break | ||
#Epatch:disableUpdate fi | ||
#Epatch:disableUpdate @@ -43,6 +49,10 @@ update_setting () { | ||
#Epatch:disableUpdate # construct line-aware replacement string | ||
#Epatch:disableUpdate if [[ "${line}" == *"${DEFAULT_TRUE}"* ]]; then | ||
#Epatch:disableUpdate DEFAULT_TRUE_TO_FALSE="${LINE_NUM}s/${DEFAULT_TRUE}/${DEFAULT_FALSE}/" | ||
#Epatch:disableUpdate + elif [[ "${line}" == *"${DEFAULT_TRUE_R}"* ]]; then | ||
#Epatch:disableUpdate + DEFAULT_TRUE_TO_FALSE="${LINE_NUM}s/${DEFAULT_TRUE_R}/${DEFAULT_FALSE_R}/" | ||
#Epatch:disableUpdate + elif [[ "${line}" == *"${DEFAULT_TRUE_U}"* ]]; then | ||
#Epatch:disableUpdate + DEFAULT_TRUE_TO_FALSE="${LINE_NUM}s/${DEFAULT_TRUE_U}/${DEFAULT_FALSE_U}/" | ||
#Epatch:disableUpdate else | ||
#Epatch:disableUpdate DEFAULT_TRUE_TO_FALSE="${LINE_NUM}s/${DEFAULT_ON}/${DEFAULT_OFF}/" | ||
#Epatch:disableUpdate fi | ||
#Epatch:disableUpdate @@ -53,3 +63,5 @@ update_setting () { | ||
#Epatch:disableUpdate update_setting "${TELEMETRY_CRASH_REPORTER}" src/vs/workbench/electron-sandbox/desktop.contribution.ts | ||
#Epatch:disableUpdate update_setting "${TELEMETRY_CONFIGURATION}" src/vs/platform/telemetry/common/telemetryService.ts | ||
#Epatch:disableUpdate update_setting "${NLS}" src/vs/workbench/contrib/preferences/common/preferencesContribution.ts | ||
#Epatch:disableUpdate +update_setting "${SHOW_RELEASE_NOTES}" src/vs/platform/update/common/update.config.contribution.ts | ||
#Epatch:disableUpdate +update_setting "${UPDATE_MODE}" src/vs/platform/update/common/update.config.contribution.ts | ||
#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 @@ -84,7 +84,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 | ||
#Epatch:titlebarstyle diff --git a/update_settings.sh b/update_settings.sh | ||
#Epatch:titlebarstyle index 6d20430..3ea3670 100755 | ||
#Epatch:titlebarstyle --- a/update_settings.sh | ||
#Epatch:titlebarstyle +++ b/update_settings.sh | ||
#Epatch:titlebarstyle @@ -8,11 +8,14 @@ DEFAULT_TRUE_U="default: 'default'" | ||
#Epatch:titlebarstyle DEFAULT_FALSE_U="default: 'none'" | ||
#Epatch:titlebarstyle DEFAULT_ON="'default': TelemetryConfiguration.ON" | ||
#Epatch:titlebarstyle DEFAULT_OFF="'default': TelemetryConfiguration.OFF" | ||
#Epatch:titlebarstyle +DEFAULT_WINDOWTITLEBAR="'default': 'custom'" | ||
#Epatch:titlebarstyle +CHANGED_WINDOWTITLEBAR="'default': 'native'" | ||
#Epatch:titlebarstyle SHOW_RELEASE_NOTES="'update.showReleaseNotes':" | ||
#Epatch:titlebarstyle UPDATE_MODE="'update.mode':" | ||
#Epatch:titlebarstyle TELEMETRY_CRASH_REPORTER="'telemetry.enableCrashReporter':" | ||
#Epatch:titlebarstyle TELEMETRY_CONFIGURATION=" TelemetryConfiguration.ON" | ||
#Epatch:titlebarstyle NLS=workbench.settings.enableNaturalLanguageSearch | ||
#Epatch:titlebarstyle +WINDOW_TITLEBARSTYLE="'window.titleBarStyle':" | ||
#Epatch:titlebarstyle | ||
#Epatch:titlebarstyle # include common functions | ||
#Epatch:titlebarstyle . ../utils.sh | ||
#Epatch:titlebarstyle @@ -35,7 +38,7 @@ update_setting () { | ||
#Epatch:titlebarstyle if [[ "${line}" == *"${SETTING}"* ]]; then | ||
#Epatch:titlebarstyle IN_SETTING=1 | ||
#Epatch:titlebarstyle fi | ||
#Epatch:titlebarstyle - if [[ ("${line}" == *"${DEFAULT_TRUE}"* || "${line}" == *"${DEFAULT_ON}"* || "${line}" == *"${DEFAULT_TRUE_R}"* || "${line}" == *"${DEFAULT_TRUE_U}"*) && "${IN_SETTING}" == "1" ]]; then | ||
#Epatch:titlebarstyle + if [[ ("${line}" == *"${DEFAULT_TRUE}"* || "${line}" == *"${DEFAULT_ON}"* || "${line}" == *"${DEFAULT_TRUE_R}"* || "${line}" == *"${DEFAULT_TRUE_U}"* || ${line} == *"${DEFAULT_WINDOWTITLEBAR}"*) && "${IN_SETTING}" == "1" ]]; then | ||
#Epatch:titlebarstyle FOUND=1 | ||
#Epatch:titlebarstyle break | ||
#Epatch:titlebarstyle fi | ||
#Epatch:titlebarstyle @@ -53,6 +56,8 @@ update_setting () { | ||
#Epatch:titlebarstyle DEFAULT_TRUE_TO_FALSE="${LINE_NUM}s/${DEFAULT_TRUE_R}/${DEFAULT_FALSE_R}/" | ||
#Epatch:titlebarstyle elif [[ "${line}" == *"${DEFAULT_TRUE_U}"* ]]; then | ||
#Epatch:titlebarstyle DEFAULT_TRUE_TO_FALSE="${LINE_NUM}s/${DEFAULT_TRUE_U}/${DEFAULT_FALSE_U}/" | ||
#Epatch:titlebarstyle + elif [[ "${line}" == *"${DEFAULT_WINDOWTITLEBAR}"* ]]; then | ||
#Epatch:titlebarstyle + DEFAULT_TRUE_TO_FALSE="${LINE_NUM}s/${DEFAULT_WINDOWTITLEBAR}/${CHANGED_WINDOWTITLEBAR}/" | ||
#Epatch:titlebarstyle else | ||
#Epatch:titlebarstyle DEFAULT_TRUE_TO_FALSE="${LINE_NUM}s/${DEFAULT_ON}/${DEFAULT_OFF}/" | ||
#Epatch:titlebarstyle fi | ||
#Epatch:titlebarstyle @@ -65,3 +70,4 @@ update_setting "${TELEMETRY_CONFIGURATION}" src/vs/platform/telemetry/common/tel | ||
#Epatch:titlebarstyle update_setting "${NLS}" src/vs/workbench/contrib/preferences/common/preferencesContribution.ts | ||
#Epatch:titlebarstyle update_setting "${SHOW_RELEASE_NOTES}" src/vs/platform/update/common/update.config.contribution.ts | ||
#Epatch:titlebarstyle update_setting "${UPDATE_MODE}" src/vs/platform/update/common/update.config.contribution.ts | ||
#Epatch:titlebarstyle +update_setting "${WINDOW_TITLEBARSTYLE}" src/vs/workbench/electron-sandbox/desktop.contribution.ts | ||
#Epatch:titlebarstyle diff --git a/update_settings.sh b/update_settings.sh | ||
#Epatch:titlebarstyle index 3fb7f1d..f6abb91 100755 | ||
#Epatch:titlebarstyle --- a/update_settings.sh | ||
#Epatch:titlebarstyle +++ b/update_settings.sh | ||
#Epatch:titlebarstyle @@ -20,6 +20,15 @@ WINDOW_TITLEBARSTYLE="'window.titleBarStyle':" | ||
#Epatch:titlebarstyle # include common functions | ||
#Epatch:titlebarstyle . ../utils.sh | ||
#Epatch:titlebarstyle | ||
#Epatch:titlebarstyle +replace () { | ||
#Epatch:titlebarstyle + echo "${1}" | ||
#Epatch:titlebarstyle + if is_gnu_sed; then | ||
#Epatch:titlebarstyle + sed -i "${1}" "${2}" | ||
#Epatch:titlebarstyle + else | ||
#Epatch:titlebarstyle + sed -i '' -E "${1}" "${2}" | ||
#Epatch:titlebarstyle + fi | ||
#Epatch:titlebarstyle +} | ||
#Epatch:titlebarstyle + | ||
#Epatch:titlebarstyle update_setting () { | ||
#Epatch:titlebarstyle local FILENAME SETTING LINE_NUM IN_SETTING FOUND DEFAULT_TRUE_TO_FALSEestyle |