diff --git a/.gitignore b/.gitignore index 395da48..c5b9201 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ VS*/* VSCode* VSCodium* .DS_Store +artifacts/ build/linux/appimage/out build/linux/appimage/pkg2appimage.AppDir build/linux/appimage/pkg2appimage-*.AppImage diff --git a/build/build.sh b/build/build.sh index bbca3dd..a598789 100755 --- a/build/build.sh +++ b/build/build.sh @@ -4,8 +4,8 @@ # to run with Bash: "C:\Program Files\Git\bin\bash.exe" ./build/build.sh ### -export CI_BUILD=no -export SHOULD_BUILD=yes +export CI_BUILD="no" +export SHOULD_BUILD="yes" export SKIP_PACKAGES="yes" export VSCODE_LATEST="no" export VSCODE_QUALITY="stable" diff --git a/build/build_docker.sh b/build/build_docker.sh index 564558b..527880b 100755 --- a/build/build_docker.sh +++ b/build/build_docker.sh @@ -2,8 +2,26 @@ exists() { type -t "$1" > /dev/null 2>&1; } -rm -rf VSCode* -rm -rf vscode* +export CI_BUILD="no" +export OS_NAME="linux" +export SHOULD_BUILD="yes" +export SKIP_PACKAGES="yes" +export VSCODE_LATEST="no" +export VSCODE_QUALITY="stable" + +while getopts ":ilp" opt; do + case "$opt" in + i) + export VSCODE_QUALITY="insider" + ;; + l) + export VSCODE_LATEST="yes" + ;; + p) + export SKIP_PACKAGES="no" + ;; + esac +done if ! exists yarn; then curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - @@ -22,8 +40,17 @@ else export VSCODE_ARCH="armhf" fi -echo "-- VSCODE_ARCH: ${VSCODE_ARCH}" +echo "OS_NAME: ${OS_NAME}" +echo "SKIP_PACKAGES: ${SKIP_PACKAGES}" +echo "VSCODE_ARCH: ${VSCODE_ARCH}" +echo "VSCODE_LATEST: ${VSCODE_LATEST}" +echo "VSCODE_QUALITY: ${VSCODE_QUALITY}" + +rm -rf vscode* VSCode* . get_repo.sh +. build.sh -SHOULD_BUILD=yes CI_BUILD=no OS_NAME=linux . build.sh +if [[ "${SKIP_PACKAGES}" == "no" ]]; then + . prepare_artifacts.sh +fi diff --git a/build/linux/appimage/build.sh b/build/linux/appimage/build.sh index 365c09b..596e458 100755 --- a/build/linux/appimage/build.sh +++ b/build/linux/appimage/build.sh @@ -32,7 +32,7 @@ if [[ "${VSCODE_ARCH}" == "x64" ]]; then rm -f pkg2appimage-*.AppImage rm -rf pkg2appimage.AppDir - rm -rf VSCodium + rm -rf VSCodium* fi cd "${CALLER_DIR}" diff --git a/build/windows/msi/build.sh b/build/windows/msi/build.sh index c79abf4..2bc79c3 100644 --- a/build/windows/msi/build.sh +++ b/build/windows/msi/build.sh @@ -43,6 +43,8 @@ else export PLATFORM="${VSCODE_ARCH}" fi +sed -i "s|@@PRODUCT_NAME@@|${PRODUCT_NAME}|g" .\\i18n\\*.wsl + BuildSetupTranslationTransform() { local CULTURE=${1} local LANGID=${2} @@ -67,7 +69,7 @@ BuildSetupTranslationTransform() { "${WIX}bin\\heat.exe" dir "${BINARY_DIR}" -out "Files-${OUTPUT_BASE_FILENAME}.wxs" -t vscodium.xsl -gg -sfrag -scom -sreg -srd -ke -cg "AppFiles" -var var.AppName -var var.ProductVersion -var var.IconDir -var var.LicenseDir -var var.BinaryDir -dr APPLICATIONFOLDER -platform "${PLATFORM}" "${WIX}bin\\candle.exe" -arch "${PLATFORM}" vscodium.wxs "Files-${OUTPUT_BASE_FILENAME}.wxs" -ext WixUIExtension -ext WixUtilExtension -ext WixNetFxExtension -dAppName="${PRODUCT_NAME}" -dProductVersion="${RELEASE_VERSION%-insider}" -dProductId="${PRODUCT_ID}" -dBinaryDir="${BINARY_DIR}" -dIconDir="${ICON_DIR}" -dLicenseDir="${LICENSE_DIR}" -dSetupResourcesDir="${SETUP_RESOURCES_DIR}" -dCulture="${CULTURE}" -"${WIX}bin\\light.exe" vscodium.wixobj "Files-${OUTPUT_BASE_FILENAME}.wixobj" -ext WixUIExtension -ext WixUtilExtension -ext WixNetFxExtension -spdb -cc "${TEMP}\\vscodium-cab-cache\\${PLATFORM}" -out "${SETUP_RELEASE_DIR}\\${OUTPUT_BASE_FILENAME}.msi" -loc "i18n\\${PRODUCT_SKU}.${CULTURE}.wxl" -cultures:"${CULTURE}" -sice:ICE60 -sice:ICE69 +"${WIX}bin\\light.exe" vscodium.wixobj "Files-${OUTPUT_BASE_FILENAME}.wixobj" -ext WixUIExtension -ext WixUtilExtension -ext WixNetFxExtension -spdb -cc "${TEMP}\\vscodium-cab-cache\\${PLATFORM}" -out "${SETUP_RELEASE_DIR}\\${OUTPUT_BASE_FILENAME}.msi" -loc "i18n\\vscodium.${CULTURE}.wxl" -cultures:"${CULTURE}" -sice:ICE60 -sice:ICE69 BuildSetupTranslationTransform de-de 1031 BuildSetupTranslationTransform es-es 3082 diff --git a/build/windows/msi/i18n/vscodium.de-de.wxl b/build/windows/msi/i18n/vscodium.de-de.wxl index b33bdd0..ca92126 100644 --- a/build/windows/msi/i18n/vscodium.de-de.wxl +++ b/build/windows/msi/i18n/vscodium.de-de.wxl @@ -1,25 +1,25 @@  1031 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Paket mit VSCodium + Paket mit @@PRODUCT_NAME@@ Startmenü-Verknüpfung Startmenü-Symbol erstellen. Desktop-Verknüpfung Desktop-Symbol erstellen. Dateizuordnungen - VSCodium als Editor für unterstützte Dateitypen registrieren. + @@PRODUCT_NAME@@ als Editor für unterstützte Dateitypen registrieren. Dateikontextmenü - Aktion "Mit VSCodium öffnen" dem Dateikontextmenü von Windows-Explorer hinzufügen. + Aktion "Mit @@PRODUCT_NAME@@ öffnen" dem Dateikontextmenü von Windows-Explorer hinzufügen. Verzeichniskontextmenü - Aktion "Mit VSCodium öffnen" dem Verzeichniskontextmenü von Windows-Explorer hinzufügen. + Aktion "Mit @@PRODUCT_NAME@@ öffnen" dem Verzeichniskontextmenü von Windows-Explorer hinzufügen. Zu PATH hinzufügen - VSCodium zur PATH Variable hinzufügen. Nach dem Neustart verfügbar. - VSCodium ausführen - Eine neuere Version von VSCodium ist bereits installiert. + @@PRODUCT_NAME@@ zur PATH Variable hinzufügen. Nach dem Neustart verfügbar. + @@PRODUCT_NAME@@ ausführen + Eine neuere Version von @@PRODUCT_NAME@@ ist bereits installiert. Diese Anwendung erfordert .NET Framework 4.5.2 oder höher. Bitte installieren Sie .NET Framework und führen Sie dieses Installationsprogramm erneut aus. Windows 7 oder neuer ist erforderlich. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.en-us.wxl b/build/windows/msi/i18n/vscodium.en-us.wxl index 6456bf6..24303fa 100644 --- a/build/windows/msi/i18n/vscodium.en-us.wxl +++ b/build/windows/msi/i18n/vscodium.en-us.wxl @@ -1,25 +1,25 @@  1033 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.es-es.wxl b/build/windows/msi/i18n/vscodium.es-es.wxl index a6eaa9e..af84628 100644 --- a/build/windows/msi/i18n/vscodium.es-es.wxl +++ b/build/windows/msi/i18n/vscodium.es-es.wxl @@ -1,25 +1,25 @@  3082 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.fr-fr.wxl b/build/windows/msi/i18n/vscodium.fr-fr.wxl index ba46b09..5f89947 100644 --- a/build/windows/msi/i18n/vscodium.fr-fr.wxl +++ b/build/windows/msi/i18n/vscodium.fr-fr.wxl @@ -1,25 +1,25 @@  1036 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.it-it.wxl b/build/windows/msi/i18n/vscodium.it-it.wxl index 201e11a..f1b9f29 100644 --- a/build/windows/msi/i18n/vscodium.it-it.wxl +++ b/build/windows/msi/i18n/vscodium.it-it.wxl @@ -1,25 +1,25 @@  1040 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.ja-jp.wxl b/build/windows/msi/i18n/vscodium.ja-jp.wxl index 9e127ad..42175b9 100644 --- a/build/windows/msi/i18n/vscodium.ja-jp.wxl +++ b/build/windows/msi/i18n/vscodium.ja-jp.wxl @@ -1,25 +1,25 @@  1041 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.ko-kr.wxl b/build/windows/msi/i18n/vscodium.ko-kr.wxl index 1c7121c..d665d0b 100644 --- a/build/windows/msi/i18n/vscodium.ko-kr.wxl +++ b/build/windows/msi/i18n/vscodium.ko-kr.wxl @@ -1,25 +1,25 @@  1042 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.ru-ru.wxl b/build/windows/msi/i18n/vscodium.ru-ru.wxl index 1668fa2..6e3dcf4 100644 --- a/build/windows/msi/i18n/vscodium.ru-ru.wxl +++ b/build/windows/msi/i18n/vscodium.ru-ru.wxl @@ -1,25 +1,25 @@  1049 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.zh-cn.wxl b/build/windows/msi/i18n/vscodium.zh-cn.wxl index ff4714b..c5fab3a 100644 --- a/build/windows/msi/i18n/vscodium.zh-cn.wxl +++ b/build/windows/msi/i18n/vscodium.zh-cn.wxl @@ -1,25 +1,25 @@  2052 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/build/windows/msi/i18n/vscodium.zh-tw.wxl b/build/windows/msi/i18n/vscodium.zh-tw.wxl index 78e1b9d..a218f51 100644 --- a/build/windows/msi/i18n/vscodium.zh-tw.wxl +++ b/build/windows/msi/i18n/vscodium.zh-tw.wxl @@ -1,25 +1,25 @@  1028 - VSCodium + @@PRODUCT_NAME@@ https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium https://github.com/VSCodium/vscodium - Package with VSCodium + Package with @@PRODUCT_NAME@@ Start Menu shortcut Create a start menu icon. Desktop shortcut Create a desktop icon. File Associations - Register VSCodium as an editor for supported file types. + Register @@PRODUCT_NAME@@ as an editor for supported file types. Files context menu - Add "Open with VSCodium" action to Windows Explorer file contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer file contect menu. Directory context menu - Add "Open with VSCodium" action to Windows Explorer directory contect menu. + Add "Open with @@PRODUCT_NAME@@" action to Windows Explorer directory contect menu. Add to PATH - Add VSCodium to PATH environment variable. Available after restart. - Launch VSCodium - Newer version of VSCodium is already installed. + Add @@PRODUCT_NAME@@ to PATH environment variable. Available after restart. + Launch @@PRODUCT_NAME@@ + Newer version of @@PRODUCT_NAME@@ is already installed. This application requires .NET Framework 4.5.2 or later. Please install the .NET Framework then run this installer again. Windows 7 or later is required. - \ No newline at end of file + diff --git a/prepare_artifacts.sh b/prepare_artifacts.sh index c347494..eb6775e 100755 --- a/prepare_artifacts.sh +++ b/prepare_artifacts.sh @@ -12,7 +12,7 @@ sum_file() { fi } -mkdir artifacts +mkdir -p artifacts if [[ "${OS_NAME}" == "osx" ]]; then if [[ "${CI_BUILD}" != "no" ]]; then @@ -47,8 +47,8 @@ if [[ "${OS_NAME}" == "osx" ]]; then if [[ "${SHOULD_BUILD_DMG}" != "no" ]]; then echo "Building and moving DMG" pushd "VSCode-darwin-${VSCODE_ARCH}" - npx create-dmg VSCodium.app .. - mv "../VSCodium ${MS_TAG}.dmg" "../artifacts/VSCodium.${VSCODE_ARCH}.${RELEASE_VERSION}.dmg" + npx create-dmg ./*.app .. + mv ../*.dmg "../artifacts/VSCodium.${VSCODE_ARCH}.${RELEASE_VERSION}.dmg" popd fi @@ -147,6 +147,8 @@ else if [[ "${SHOULD_BUILD_APPIMAGE}" != "no" ]]; then echo "Moving AppImage" mv build/linux/appimage/out/*.AppImage* artifacts/ + + rename '_-_' '-' artifacts/*.AppImage fi VSCODE_PLATFORM="linux"