Skip to content

Commit 09024c3

Browse files
committed
chore: remove apps/site, now owned by the private site repository
The site and its CDN build moved to PyModel/pythinker-site, which is the source of truth and already builds and serves code.pythinker.com. Nothing in this repository builds or deploys the site any more, so keeping a second copy here could only drift.
1 parent ac29bc4 commit 09024c3

57 files changed

Lines changed: 18 additions & 4074 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,17 @@ jobs:
203203
retention-days: 7
204204
if-no-files-found: error
205205

206-
# code.pythinker.com redeploys via Dokploy autodeploy on push to main (app
207-
# Pythinker/code builds apps/site/Dockerfile from the repo). That autodeploy
208-
# fires on the `ci: release packages` push — which STARTS the release — while
209-
# apps/site/scripts/build-cdn.mjs reads the version from npm's dist-tag, which
210-
# only moves when the publish FINISHES. The first build therefore bakes in the
211-
# previous version and nothing rebuilds it, so the release stays invisible to
212-
# every installed client. This job fires a second deploy after the publish.
206+
# code.pythinker.com is built from the private repository PyModel/pythinker-site,
207+
# which owns the site source and its build-cdn.mjs. Dokploy autodeploys on push
208+
# to THAT repository, so nothing in this repository triggers a CDN rebuild — this
209+
# job is the only thing that does after a release.
210+
#
211+
# It has to exist because the CDN resolves the version it advertises from npm's
212+
# dist-tag, which only moves when the publish FINISHES. Without this job a
213+
# release would publish to npm and the CDN would keep serving the previous
214+
# version until someone happened to push to the site repository, leaving the
215+
# release invisible to every installed client. This job fires the deploy that
216+
# picks the new dist-tag up.
213217
#
214218
# It must run after publish-native-assets: latest.json only gets its
215219
# per-platform `platforms` block once the native zips exist on the release.

apps/desktop/tests/packaging-config.spec.ts

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,11 @@ describe('desktop packaging configuration', () => {
7373
})
7474
})
7575

76-
it('keeps desktop download URLs derived from their published release version', () => {
77-
const siteSource = readFileSync(resolve(repositoryRoot, 'apps/site/src/App.vue'), 'utf8')
78-
const desktopVersionMatch = siteSource.match(/const DESKTOP_VERSION = '([^']+)'/)
79-
80-
expect(desktopVersionMatch).not.toBeNull()
81-
expect(desktopVersionMatch![1]).not.toBe('')
82-
expect(siteSource).not.toContain('Pythinker-0.1.0-arm64.dmg')
83-
expect(siteSource).not.toContain('Pythinker-0.1.0-x64-Setup.exe')
84-
expect(siteSource).toContain('Pythinker-${DESKTOP_VERSION}-arm64.dmg')
85-
expect(siteSource).toContain('Pythinker-${DESKTOP_VERSION}-x64-Setup.exe')
86-
expect(siteSource).toContain('releases/download/v${DESKTOP_VERSION}')
87-
expect(siteSource).not.toContain('releases/download/v0.1.0')
88-
89-
const desktopShowcaseMatch = siteSource.match(/<section id="desktop"[\s\S]*?<\/section>/)
90-
expect(desktopShowcaseMatch).not.toBeNull()
91-
expect(desktopShowcaseMatch![0]).toContain('/brand/windows11.svg')
92-
})
76+
// A test here used to read the site's App.vue and assert that the download
77+
// buttons on code.pythinker.com interpolated the desktop release version
78+
// instead of hardcoding one. The site moved to the private repository
79+
// PyModel/pythinker-site, so nothing in this repository can see those links
80+
// any more and the check has to live there. It is not covered here.
9381

9482
it('maps the staged Host node_modules directory as the copy root', () => {
9583
expect(desktopPackage.build.extraResources).toEqual(expect.arrayContaining([

apps/site/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/site/Caddyfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

apps/site/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

apps/site/index.html

Lines changed: 0 additions & 57 deletions
This file was deleted.

apps/site/package.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

apps/site/public/_headers

Lines changed: 0 additions & 10 deletions
This file was deleted.
-15.7 KB
Binary file not shown.

apps/site/public/bimi-logo.svg

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)