diff --git a/ci/build.ts b/ci/build.ts index ada4a2cb..649bbe05 100644 --- a/ci/build.ts +++ b/ci/build.ts @@ -353,7 +353,7 @@ class Builder { hmr: false, logLevel: 1, outDir: path.join(this.rootPath, out), - publicUrl: `/static-${commit || "development"}/dist`, + publicUrl: `/static/${commit || "development"}/dist`, target: "browser", }, ) diff --git a/ci/vscode.patch b/ci/vscode.patch index 82197588..54a3a759 100644 --- a/ci/vscode.patch +++ b/ci/vscode.patch @@ -2968,7 +2968,7 @@ index bbb72e9511..0785d3391d 100644 -registerSingleton(IExtensionStoragePaths, class extends NotImplementedProxy(IExtensionStoragePaths) { whenReady = Promise.resolve(); }); +registerSingleton(IExtensionStoragePaths, ExtensionStoragePaths); diff --git a/src/vs/workbench/services/extensions/worker/extensionHostWorkerMain.ts b/src/vs/workbench/services/extensions/worker/extensionHostWorkerMain.ts -index 79455414c0..5ba66b2d83 100644 +index 79455414c0..a407593b4d 100644 --- a/src/vs/workbench/services/extensions/worker/extensionHostWorkerMain.ts +++ b/src/vs/workbench/services/extensions/worker/extensionHostWorkerMain.ts @@ -14,7 +14,11 @@ @@ -2978,8 +2978,8 @@ index 79455414c0..5ba66b2d83 100644 - catchError: true + catchError: true, + paths: { -+ '@coder/node-browser': `../../static-{{COMMIT}}/node_modules/@coder/node-browser/out/client/client.js`, -+ '@coder/requirefs': `../../static-{{COMMIT}}/node_modules/@coder/requirefs/out/requirefs.js`, ++ '@coder/node-browser': `../node_modules/@coder/node-browser/out/client/client.js`, ++ '@coder/requirefs': `../node_modules/@coder/requirefs/out/requirefs.js`, + } }); diff --git a/src/browser/media/manifest.json b/src/browser/media/manifest.json index c0f5cf23..76ec15ce 100644 --- a/src/browser/media/manifest.json +++ b/src/browser/media/manifest.json @@ -7,32 +7,32 @@ "description": "Run editors on a remote server.", "icons": [ { - "src": "{{BASE}}/static-{{COMMIT}}/src/browser/media/pwa-icon-96.png", + "src": "{{BASE}}/static/{{COMMIT}}/src/browser/media/pwa-icon-96.png", "type": "image/png", "sizes": "96x96" }, { - "src": "{{BASE}}/static-{{COMMIT}}/src/browser/media/pwa-icon-128.png", + "src": "{{BASE}}/static/{{COMMIT}}/src/browser/media/pwa-icon-128.png", "type": "image/png", "sizes": "128x128" }, { - "src": "{{BASE}}/static-{{COMMIT}}/src/browser/media/pwa-icon-192.png", + "src": "{{BASE}}/static/{{COMMIT}}/src/browser/media/pwa-icon-192.png", "type": "image/png", "sizes": "192x192" }, { - "src": "{{BASE}}/static-{{COMMIT}}/src/browser/media/pwa-icon-256.png", + "src": "{{BASE}}/static/{{COMMIT}}/src/browser/media/pwa-icon-256.png", "type": "image/png", "sizes": "256x256" }, { - "src": "{{BASE}}/static-{{COMMIT}}/src/browser/media/pwa-icon-384.png", + "src": "{{BASE}}/static/{{COMMIT}}/src/browser/media/pwa-icon-384.png", "type": "image/png", "sizes": "384x384" }, { - "src": "{{BASE}}/static-{{COMMIT}}/src/browser/media/pwa-icon-512.png", + "src": "{{BASE}}/static/{{COMMIT}}/src/browser/media/pwa-icon-512.png", "type": "image/png", "sizes": "512x512" } diff --git a/src/browser/pages/app.html b/src/browser/pages/app.html index 0e850eee..616e303c 100644 --- a/src/browser/pages/app.html +++ b/src/browser/pages/app.html @@ -8,18 +8,18 @@ /> code-server — {{APP_NAME}} - + - - + + - - + + diff --git a/src/browser/pages/error.html b/src/browser/pages/error.html index e714c922..83dfcbaa 100644 --- a/src/browser/pages/error.html +++ b/src/browser/pages/error.html @@ -8,14 +8,14 @@ /> {{ERROR_TITLE}} - code-server - + - - + + @@ -30,6 +30,6 @@ - + diff --git a/src/browser/pages/home.html b/src/browser/pages/home.html index d2bc92f7..3a06ec25 100644 --- a/src/browser/pages/home.html +++ b/src/browser/pages/home.html @@ -8,14 +8,14 @@ /> code-server - + - - + + @@ -70,6 +70,6 @@ - + diff --git a/src/browser/pages/login.html b/src/browser/pages/login.html index df6c890b..9a98d012 100644 --- a/src/browser/pages/login.html +++ b/src/browser/pages/login.html @@ -11,14 +11,14 @@ content="style-src 'self'; script-src 'self' 'unsafe-inline'; manifest-src 'self'; img-src 'self' data:;" /> code-server login - + - - + + @@ -50,7 +50,7 @@ - + + diff --git a/src/browser/pages/vscode.html b/src/browser/pages/vscode.html index c95918c2..fa2b82af 100644 --- a/src/browser/pages/vscode.html +++ b/src/browser/pages/vscode.html @@ -25,21 +25,21 @@ - + - + @@ -50,11 +50,11 @@ - - + +