From d42c56f9d0b3d9581e67e45aa43a5035479aaa24 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Thu, 1 Aug 2024 08:42:27 +0200 Subject: [PATCH 1/3] testing --- .woodpecker/ci.yml | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index f7878793a..bfed152e4 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -1,13 +1,10 @@ -labels: - realm: lab - when: - - event: [push, tag, manual, pull_request] + - event: [cron, tag, manual, pull_request] steps: build: - #image: node:lts - image: node:18.20.2 + #image: node:18.20.2 + image: node:20.11.1 commands: - | echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list @@ -33,15 +30,35 @@ steps: python-is-python3 \ python3 \ rsync \ - xvfb + xvfb \ + quilt + - quilt push -a - yarn install - yarn build - export VERSION='0.0.0' && yarn build:vscode - yarn release - yarn release:standalone - yarn package - - ls -la - - ls -la release/* - - ls -la release-standalone/* - ls -la release-packages/* - - ls -la out/* \ No newline at end of file + when: + event: pull_request + branch: ${CI_REPO_DEFAULT_BRANCH} + + save-package: + image: ocram85/plugin-gitea-package:0.1.0 + secrets: [ gitea_user, gitea_passwd] + settings: + user: + from_secret: gitea_user + password: + from_secret: gitea_passwd + debug: "true" + owner: "ocram85" + package_name: "test_build" + package_version: "0.2.0" + file_source: "./release-packages/code-server-0.0.0-linux-amd64.tar.gz" + file_name: "code-server.tar.gz" + update: "true" + when: + event: pull_request + branch: ${CI_REPO_DEFAULT_BRANCH} \ No newline at end of file -- 2.45.2 From 42f5ff9e54a70373ad28b55bd7eff461b90fb0f1 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Thu, 1 Aug 2024 09:01:03 +0200 Subject: [PATCH 2/3] Add patches/product-json.diff --- patches/product-json.diff | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 patches/product-json.diff diff --git a/patches/product-json.diff b/patches/product-json.diff new file mode 100644 index 000000000..73dc754d0 --- /dev/null +++ b/patches/product-json.diff @@ -0,0 +1,39 @@ +Description: update product.json +Index: code-server/ci/build/build-vscode.sh +=================================================================== +--- code-server.orig/ci/build/build-vscode.sh ++++ code-server/ci/build/build-vscode.sh +@@ -70,21 +70,21 @@ main() { + jq --slurp '.[0] * .[1]' product.original.json <( + cat << EOF + { +- "enableTelemetry": true, ++ "enableTelemetry": false, + "quality": "stable", + "codeServerVersion": "$VERSION", +- "nameShort": "code-server", +- "nameLong": "code-server", +- "applicationName": "code-server", +- "dataFolderName": ".code-server", +- "win32MutexName": "codeserver", ++ "nameShort": "arkanum-server", ++ "nameLong": "arkanum-server", ++ "applicationName": "arkanum-server", ++ "dataFolderName": ".arkanum-server", ++ "win32MutexName": "arkanumserver", + "licenseUrl": "https://github.com/coder/code-server/blob/main/LICENSE", +- "win32DirName": "code-server", +- "win32NameVersion": "code-server", +- "win32AppUserModelId": "coder.code-server", +- "win32ShellNameShort": "c&ode-server", +- "darwinBundleIdentifier": "com.coder.code.server", +- "linuxIconName": "com.coder.code.server", ++ "win32DirName": "arkanum-server", ++ "win32NameVersion": "arkanum-server", ++ "win32AppUserModelId": "arkanum.arkanum-server", ++ "win32ShellNameShort": "a&rkanum-server", ++ "darwinBundleIdentifier": "dev.arkanum.arkanum.server", ++ "linuxIconName": "dev.arkanum.arkanum.server", + "reportIssueUrl": "https://github.com/coder/code-server/issues/new", + "documentationUrl": "https://go.microsoft.com/fwlink/?LinkID=533484#vscode", + "keyboardShortcutsUrlMac": "https://go.microsoft.com/fwlink/?linkid=832143", \ No newline at end of file -- 2.45.2 From d875e821bff7a3c7f726fdb93cd19ba22220d4d2 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Thu, 1 Aug 2024 09:01:29 +0200 Subject: [PATCH 3/3] Update patches/series --- patches/series | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/series b/patches/series index e5d456fda..7fd8dcbf7 100644 --- a/patches/series +++ b/patches/series @@ -21,3 +21,4 @@ getting-started.diff safari.diff keepalive.diff clipboard.diff +product-json.diff \ No newline at end of file -- 2.45.2