@standardnotes/releases 1.1.3 → 1.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.2.0-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/releases@1.1.3...@standardnotes/releases@1.2.0-alpha.0) (2022-06-23)
7
+
8
+ ### Features
9
+
10
+ * release json with download urls ([#1140](https://github.com/standardnotes/app/issues/1140)) ([6fb133f](https://github.com/standardnotes/app/commit/6fb133fb75a270cf8cbf75f5844db2aaa935247c))
11
+
6
12
  ## [1.1.3](https://github.com/standardnotes/app/compare/@standardnotes/releases@1.1.3-alpha.0...@standardnotes/releases@1.1.3) (2022-06-22)
7
13
 
8
14
  **Note:** Version bump only for package @standardnotes/releases
@@ -0,0 +1,19 @@
1
+ export declare enum Platform {
2
+ LinuxAmd64Snap = 0,
3
+ LinuxAmd64Deb = 1,
4
+ LinuxArm64AppImage = 2,
5
+ LinuxArm64Deb = 3,
6
+ LinuxI386AppImage = 4,
7
+ LinuxI386Deb = 5,
8
+ LinuxX86_64AppImage = 6,
9
+ MacArm64Dmg = 7,
10
+ MacArm64Zip = 8,
11
+ MacX64Dmg = 9,
12
+ MacX64Zip = 10,
13
+ WinIa32Exe = 11,
14
+ WinX64Exe = 12,
15
+ WinExe = 13
16
+ }
17
+ export declare type Package = '@standardnotes/mobile' | '@standardnotes/desktop' | '@standardnotes/components-meta' | '@standardnotes/web';
18
+ export declare type Versions = Record<Package, string>;
19
+ export declare type Downloads = Record<Platform, string>;
@@ -1,6 +1,24 @@
1
1
  {
2
- "@standardnotes/components-meta": "2.2.0",
3
- "@standardnotes/desktop": "3.22.14",
4
- "@standardnotes/mobile": "3.24.0",
5
- "@standardnotes/web": "3.24.1"
2
+ "Versions": {
3
+ "@standardnotes/components-meta": "2.2.0",
4
+ "@standardnotes/desktop": "3.22.14",
5
+ "@standardnotes/mobile": "3.24.0",
6
+ "@standardnotes/web": "3.24.1"
7
+ },
8
+ "Downloads": {
9
+ "LinuxAmd64Snap": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-linux-amd64.snap",
10
+ "LinuxAmd64Deb": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-linux-amd64.deb",
11
+ "LinuxArm64AppImage": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-linux-arm64.AppImage",
12
+ "LinuxArm64Deb": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-linux-arm64.deb",
13
+ "LinuxI386AppImage": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-linux-i386.AppImage",
14
+ "LinuxI386Deb": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-linux-i386.deb",
15
+ "LinuxX86_64AppImage": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-linux-x86_64.AppImage",
16
+ "MacArm64Dmg": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-mac-arm64.dmg",
17
+ "MacArm64Zip": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-mac-arm64.zip",
18
+ "MacX64Dmg": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-mac-x64.dmg",
19
+ "MacX64Zip": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-mac-x64.zip",
20
+ "WinIa32Exe": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-win-ia32.exe",
21
+ "WinX64Exe": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-win-x64.exe",
22
+ "WinExe": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.22.14/standard-notes-3.22.14-win.exe"
23
+ }
6
24
  }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@standardnotes/releases",
3
- "version": "1.1.3",
3
+ "version": "1.2.0-alpha.0",
4
4
  "license": "AGPL-3.0-or-later",
5
5
  "main": "dist/releases.json",
6
+ "types": "dist/index.d.ts",
6
7
  "publishConfig": {
7
8
  "access": "public"
8
9
  },
@@ -12,7 +13,7 @@
12
13
  "node": ">=12.19.0 <17.0.0"
13
14
  },
14
15
  "scripts": {
15
- "build": "node index.mjs",
16
+ "build": "yarn tsc && node src/build-json.mjs",
16
17
  "version": "yarn build"
17
18
  },
18
19
  "devDependencies": {
@@ -23,5 +24,5 @@
23
24
  "@types/node": "*",
24
25
  "typescript": "*"
25
26
  },
26
- "gitHead": "4a9471858b122fb59816d9d316aed3a2580cb9d1"
27
+ "gitHead": "70e9deccb7d632db43c536b9148a99efa8c925e9"
27
28
  }
@@ -0,0 +1,38 @@
1
+ import Components from '../../components/package.json' assert { type: 'json' }
2
+ import Desktop from '../../desktop/package.json' assert { type: 'json' }
3
+ import Mobile from '../../mobile/package.json' assert { type: 'json' }
4
+ import Web from '../../web/package.json' assert { type: 'json' }
5
+ import { writeJson, ensureDirExists } from '../../../scripts/ScriptUtils.mjs'
6
+
7
+ const CdnUrl = 'https://github.com/standardnotes/app/releases/download/'
8
+ const DesktopPackageName = '@standardnotes/desktop'
9
+ const DesktopVersion = Desktop.version
10
+ const BaseFileName = `standard-notes-${DesktopVersion}`
11
+ const ReleaseUrl = `${CdnUrl}${DesktopPackageName}@${DesktopVersion}/${BaseFileName}`.replaceAll('@', '%40')
12
+
13
+ const Versions = {
14
+ [Components.name]: Components.version,
15
+ [Desktop.name]: Desktop.version,
16
+ [Mobile.name]: Mobile.version,
17
+ [Web.name]: Web.version,
18
+ }
19
+
20
+ const Downloads = {
21
+ LinuxAmd64Snap: `${ReleaseUrl}-linux-amd64.snap`,
22
+ LinuxAmd64Deb: `${ReleaseUrl}-linux-amd64.deb`,
23
+ LinuxArm64AppImage: `${ReleaseUrl}-linux-arm64.AppImage`,
24
+ LinuxArm64Deb: `${ReleaseUrl}-linux-arm64.deb`,
25
+ LinuxI386AppImage: `${ReleaseUrl}-linux-i386.AppImage`,
26
+ LinuxI386Deb: `${ReleaseUrl}-linux-i386.deb`,
27
+ LinuxX86_64AppImage: `${ReleaseUrl}-linux-x86_64.AppImage`,
28
+ MacArm64Dmg: `${ReleaseUrl}-mac-arm64.dmg`,
29
+ MacArm64Zip: `${ReleaseUrl}-mac-arm64.zip`,
30
+ MacX64Dmg: `${ReleaseUrl}-mac-x64.dmg`,
31
+ MacX64Zip: `${ReleaseUrl}-mac-x64.zip`,
32
+ WinIa32Exe: `${ReleaseUrl}-win-ia32.exe`,
33
+ WinX64Exe: `${ReleaseUrl}-win-x64.exe`,
34
+ WinExe: `${ReleaseUrl}-win.exe`,
35
+ }
36
+
37
+ ensureDirExists('dist')
38
+ writeJson({ Versions, Downloads }, 'dist/releases.json')
package/src/index.ts ADDED
@@ -0,0 +1,25 @@
1
+ export enum Platform {
2
+ LinuxAmd64Snap,
3
+ LinuxAmd64Deb,
4
+ LinuxArm64AppImage,
5
+ LinuxArm64Deb,
6
+ LinuxI386AppImage,
7
+ LinuxI386Deb,
8
+ LinuxX86_64AppImage,
9
+ MacArm64Dmg,
10
+ MacArm64Zip,
11
+ MacX64Dmg,
12
+ MacX64Zip,
13
+ WinIa32Exe,
14
+ WinX64Exe,
15
+ WinExe,
16
+ }
17
+
18
+ export type Package =
19
+ | '@standardnotes/mobile'
20
+ | '@standardnotes/desktop'
21
+ | '@standardnotes/components-meta'
22
+ | '@standardnotes/web'
23
+
24
+ export type Versions = Record<Package, string>
25
+ export type Downloads = Record<Platform, string>
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../UILib.tsconfig.json",
3
+ "compilerOptions": {
4
+ "baseUrl": ".",
5
+ "rootDir": "src",
6
+ "outDir": "dist",
7
+ "emitDeclarationOnly": true
8
+ },
9
+ "include": ["src"],
10
+ "exclude": ["dist", "node_modules"]
11
+ }
package/index.mjs DELETED
@@ -1,15 +0,0 @@
1
- import Components from '../components/package.json' assert { type: 'json' }
2
- import Desktop from '../desktop/package.json' assert { type: 'json' }
3
- import Mobile from '../mobile/package.json' assert { type: 'json' }
4
- import Web from '../web/package.json' assert { type: 'json' }
5
- import { writeJson, ensureDirExists } from '../../scripts/ScriptUtils.mjs'
6
-
7
- const Releases = {
8
- [Components.name]: Components.version,
9
- [Desktop.name]: Desktop.version,
10
- [Mobile.name]: Mobile.version,
11
- [Web.name]: Web.version,
12
- }
13
-
14
- ensureDirExists('dist')
15
- writeJson(Releases, 'dist/releases.json')