Compare commits
No commits in common. "0c4e3cc2638801783f39fe8518826c2073c278a6" and "a8a1f6470572e68bc5f8b9c80207f96d84cc0eb6" have entirely different histories.
0c4e3cc263
...
a8a1f64705
7 changed files with 188 additions and 159 deletions
25
.forgejo/workflows/release.yml
Normal file
25
.forgejo/workflows/release.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Rokit
|
||||||
|
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.githubtoken }}
|
||||||
|
|
||||||
|
- name: Authorize
|
||||||
|
run: pesde auth login --token "${{ secrets.pesde_auth_token }}"
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: pesde publish -y
|
|
@ -20,35 +20,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.githubtoken }}
|
token: ${{ secrets.githubtoken }}
|
||||||
|
|
||||||
- name: Install forgejo-cli
|
|
||||||
run: |
|
|
||||||
wget https://codeberg.org/Cyborus/forgejo-cli/releases/download/v0.2.0/forgejo-cli-linux.gz -O fj.gz
|
|
||||||
gunzip fj.gz
|
|
||||||
mv fj /usr/local/bin/fj
|
|
||||||
chmod +x /usr/local/bin/fj
|
|
||||||
|
|
||||||
- name: Pull Newest Jecs
|
- name: Pull Newest Jecs
|
||||||
run: lune run pull.luau ${{ secrets.githubtoken }}
|
run: lune run pull.luau ${{ secrets.githubtoken }}
|
||||||
|
|
||||||
- name: Authorize
|
|
||||||
run: pesde auth login --token "${{ secrets.pesde_auth_token }}"
|
|
||||||
|
|
||||||
- name: Publish Luau Target
|
|
||||||
run: pesde publish -y
|
|
||||||
|
|
||||||
- name: Manifest Switcharoo
|
|
||||||
run: |
|
|
||||||
mv pesde.toml pesde-luau.toml
|
|
||||||
mv pesde-rbx.toml pesde.toml
|
|
||||||
|
|
||||||
- name: Publish Roblox Target
|
|
||||||
run: pesde publish -y
|
|
||||||
|
|
||||||
- name: Manifest Switcharoo
|
|
||||||
run: |
|
|
||||||
mv pesde.toml pesde-rbx.toml
|
|
||||||
mv pesde-luau.toml pesde.toml
|
|
||||||
|
|
||||||
- name: Read Jecs Version
|
- name: Read Jecs Version
|
||||||
id: read_jecs_version
|
id: read_jecs_version
|
||||||
run: |
|
run: |
|
||||||
|
@ -66,11 +40,3 @@ jobs:
|
||||||
commit-message: Sync to upstream Jecs ${{ steps.read_jecs_version.outputs.JECS_VERSION }}
|
commit-message: Sync to upstream Jecs ${{ steps.read_jecs_version.outputs.JECS_VERSION }}
|
||||||
base: main
|
base: main
|
||||||
token: ${{ secrets.privileged_forgejo_token }}
|
token: ${{ secrets.privileged_forgejo_token }}
|
||||||
|
|
||||||
- name: Merge Pull Request
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if [ ! -z "${{ steps.create_pull_request.outputs.pull-request-number }}" ]; then
|
|
||||||
fj --host git.devmarked.win auth add-key marked ${{ secrets.privileged_forgejo_token }}
|
|
||||||
fj --host git.devmarked.win pr merge --method squash "${{ steps.create_pull_request.outputs.pull-request-number }}"
|
|
||||||
fi
|
|
121
.lune/pull.luau
121
.lune/pull.luau
|
@ -4,10 +4,94 @@ local net = require("@lune/net")
|
||||||
local process = require("@lune/process")
|
local process = require("@lune/process")
|
||||||
local serde = require("@lune/serde")
|
local serde = require("@lune/serde")
|
||||||
|
|
||||||
local types = require("./types")
|
|
||||||
|
|
||||||
print("-- 🟧 Starting pull of latest release...")
|
print("-- 🟧 Starting pull of latest release...")
|
||||||
|
|
||||||
|
type wally_manifest = {
|
||||||
|
package: {
|
||||||
|
name: string,
|
||||||
|
version: string,
|
||||||
|
registry: string,
|
||||||
|
realm: string,
|
||||||
|
license: string?,
|
||||||
|
exclude: { string }?,
|
||||||
|
include: { string }?,
|
||||||
|
},
|
||||||
|
dependencies: {
|
||||||
|
[string]: string,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
type environment = "luau" | "lune" | "roblox" | "roblox_server"
|
||||||
|
type pesde_dependency = {
|
||||||
|
name: string,
|
||||||
|
version: string,
|
||||||
|
index: string?,
|
||||||
|
target: environment?,
|
||||||
|
} | {
|
||||||
|
wally: string,
|
||||||
|
version: string,
|
||||||
|
index: string?,
|
||||||
|
} | {
|
||||||
|
repo: string,
|
||||||
|
rev: string,
|
||||||
|
path: string?,
|
||||||
|
}
|
||||||
|
|
||||||
|
type pesde_manifest = {
|
||||||
|
name: string,
|
||||||
|
version: string,
|
||||||
|
description: string?,
|
||||||
|
license: string?,
|
||||||
|
authors: { string }?,
|
||||||
|
repository: string?,
|
||||||
|
private: boolean?,
|
||||||
|
includes: { string }?,
|
||||||
|
pesde_version: string?,
|
||||||
|
workspace_members: { string }?,
|
||||||
|
|
||||||
|
target: {
|
||||||
|
environment: environment,
|
||||||
|
lib: string,
|
||||||
|
bin: string?,
|
||||||
|
build_files: { string }?,
|
||||||
|
},
|
||||||
|
|
||||||
|
scripts: {
|
||||||
|
roblox_sync_config_generator: string?,
|
||||||
|
sourcemap_generator: string?,
|
||||||
|
|
||||||
|
[string]: string,
|
||||||
|
}?,
|
||||||
|
|
||||||
|
indices: {
|
||||||
|
default: string,
|
||||||
|
|
||||||
|
[string]: string,
|
||||||
|
},
|
||||||
|
wally_indices: {
|
||||||
|
default: string,
|
||||||
|
|
||||||
|
[string]: string,
|
||||||
|
}?,
|
||||||
|
|
||||||
|
overrides: {
|
||||||
|
[string]: pesde_dependency,
|
||||||
|
}?,
|
||||||
|
patches: {
|
||||||
|
[string]: { [string]: string },
|
||||||
|
}?,
|
||||||
|
|
||||||
|
dependencies: {
|
||||||
|
[string]: pesde_dependency,
|
||||||
|
}?,
|
||||||
|
peer_dependencies: {
|
||||||
|
[string]: pesde_dependency,
|
||||||
|
}?,
|
||||||
|
dev_dependencies: {
|
||||||
|
[string]: pesde_dependency,
|
||||||
|
}?,
|
||||||
|
}
|
||||||
|
|
||||||
print("🟧 Fetching github token...")
|
print("🟧 Fetching github token...")
|
||||||
local github_token: string = process.args[1]
|
local github_token: string = process.args[1]
|
||||||
|
|
||||||
|
@ -30,7 +114,7 @@ if not pull_manifest_res.ok then
|
||||||
error(`❌ Couldn't download jecs manifest: {pull_manifest_res.statusCode} {pull_manifest_res.statusMessage}`)
|
error(`❌ Couldn't download jecs manifest: {pull_manifest_res.statusCode} {pull_manifest_res.statusMessage}`)
|
||||||
end
|
end
|
||||||
local manifest_contents = pull_manifest_res.body
|
local manifest_contents = pull_manifest_res.body
|
||||||
local manifest: types.wally_manifest = serde.decode("toml", manifest_contents) or error("Couldn't decode manifest.")
|
local manifest: wally_manifest = serde.decode("toml", manifest_contents) or error("Couldn't decode manifest.")
|
||||||
local jecs_version = manifest.package.version
|
local jecs_version = manifest.package.version
|
||||||
print(`✅ Got latest manifest. Version: {jecs_version}`)
|
print(`✅ Got latest manifest. Version: {jecs_version}`)
|
||||||
|
|
||||||
|
@ -105,7 +189,7 @@ Install with pesde @ `marked/jecs`
|
||||||
fs.writeFile("README.md", new_readme_contents)
|
fs.writeFile("README.md", new_readme_contents)
|
||||||
print(`✅ Modified README.md.`)
|
print(`✅ Modified README.md.`)
|
||||||
|
|
||||||
local pesde_manifest: types.pesde_manifest = {
|
local pesde_manifest: pesde_manifest = {
|
||||||
name = "marked/jecs",
|
name = "marked/jecs",
|
||||||
description = "A minimal copy of jecs published on the official pesde registry",
|
description = "A minimal copy of jecs published on the official pesde registry",
|
||||||
version = jecs_version,
|
version = jecs_version,
|
||||||
|
@ -131,38 +215,9 @@ local pesde_manifest: types.pesde_manifest = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local pesde_roblox_manifest: types.pesde_manifest = {
|
|
||||||
name = "marked/jecs",
|
|
||||||
description = "A minimal copy of jecs published on the official pesde registry",
|
|
||||||
version = jecs_version,
|
|
||||||
authors = { "jecs authors" },
|
|
||||||
repository = "https://git.devmarked.win/marked/jecs-pesde",
|
|
||||||
license = manifest.package.license,
|
|
||||||
includes = {
|
|
||||||
"init.luau",
|
|
||||||
"pesde.toml",
|
|
||||||
"README.md",
|
|
||||||
"CHANGELOG.md",
|
|
||||||
"LICENSE",
|
|
||||||
".luaurc",
|
|
||||||
},
|
|
||||||
|
|
||||||
target = {
|
|
||||||
environment = "roblox",
|
|
||||||
lib = "init.luau",
|
|
||||||
build_files = { "init.luau" },
|
|
||||||
},
|
|
||||||
|
|
||||||
indices = {
|
|
||||||
default = "https://github.com/pesde-pkg/index",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
print("🟧 Writing pesde manifest...")
|
print("🟧 Writing pesde manifest...")
|
||||||
local serialized_manifest = serde.encode("toml", pesde_manifest, true)
|
local serialized_manifest = serde.encode("toml", pesde_manifest, true)
|
||||||
fs.writeFile("pesde.toml", serialized_manifest)
|
fs.writeFile("pesde.toml", serialized_manifest)
|
||||||
local serialized_rbx_manifest = serde.encode("toml", pesde_roblox_manifest, true)
|
|
||||||
fs.writeFile("pesde-rbx.toml", serialized_rbx_manifest)
|
|
||||||
print("✅ Wrote pesde manifest.")
|
print("✅ Wrote pesde manifest.")
|
||||||
|
|
||||||
print("-- ✅ Finished pulling latest release.")
|
print("-- ✅ Finished pulling latest release.")
|
||||||
|
|
|
@ -2,10 +2,79 @@
|
||||||
local fs = require("@lune/fs")
|
local fs = require("@lune/fs")
|
||||||
local serde = require("@lune/serde")
|
local serde = require("@lune/serde")
|
||||||
|
|
||||||
local types = require("./types")
|
type environment = "luau" | "lune" | "roblox" | "roblox_server"
|
||||||
|
type pesde_dependency = {
|
||||||
|
name: string,
|
||||||
|
version: string,
|
||||||
|
index: string?,
|
||||||
|
target: environment?,
|
||||||
|
} | {
|
||||||
|
wally: string,
|
||||||
|
version: string,
|
||||||
|
index: string?,
|
||||||
|
} | {
|
||||||
|
repo: string,
|
||||||
|
rev: string,
|
||||||
|
path: string?,
|
||||||
|
}
|
||||||
|
|
||||||
|
type pesde_manifest = {
|
||||||
|
name: string,
|
||||||
|
version: string,
|
||||||
|
description: string?,
|
||||||
|
license: string?,
|
||||||
|
authors: { string }?,
|
||||||
|
repository: string?,
|
||||||
|
private: boolean?,
|
||||||
|
includes: { string }?,
|
||||||
|
pesde_version: string?,
|
||||||
|
workspace_members: { string }?,
|
||||||
|
|
||||||
|
target: {
|
||||||
|
environment: environment,
|
||||||
|
lib: string,
|
||||||
|
bin: string?,
|
||||||
|
build_files: { string }?,
|
||||||
|
},
|
||||||
|
|
||||||
|
scripts: {
|
||||||
|
roblox_sync_config_generator: string?,
|
||||||
|
sourcemap_generator: string?,
|
||||||
|
|
||||||
|
[string]: string,
|
||||||
|
}?,
|
||||||
|
|
||||||
|
indices: {
|
||||||
|
default: string,
|
||||||
|
|
||||||
|
[string]: string,
|
||||||
|
},
|
||||||
|
wally_indices: {
|
||||||
|
default: string,
|
||||||
|
|
||||||
|
[string]: string,
|
||||||
|
}?,
|
||||||
|
|
||||||
|
overrides: {
|
||||||
|
[string]: pesde_dependency,
|
||||||
|
}?,
|
||||||
|
patches: {
|
||||||
|
[string]: { [string]: string },
|
||||||
|
}?,
|
||||||
|
|
||||||
|
dependencies: {
|
||||||
|
[string]: pesde_dependency,
|
||||||
|
}?,
|
||||||
|
peer_dependencies: {
|
||||||
|
[string]: pesde_dependency,
|
||||||
|
}?,
|
||||||
|
dev_dependencies: {
|
||||||
|
[string]: pesde_dependency,
|
||||||
|
}?,
|
||||||
|
}
|
||||||
|
|
||||||
local manifest_contents = fs.readFile("pesde.toml")
|
local manifest_contents = fs.readFile("pesde.toml")
|
||||||
local manifest: types.pesde_manifest = serde.decode("toml", manifest_contents) or error("Couldn't decode manifest.")
|
local manifest: pesde_manifest = serde.decode("toml", manifest_contents) or error("Couldn't decode manifest.")
|
||||||
local jecs_version = manifest.version
|
local jecs_version = manifest.version
|
||||||
|
|
||||||
print(jecs_version)
|
print(jecs_version)
|
||||||
|
|
|
@ -1,88 +0,0 @@
|
||||||
--!strict
|
|
||||||
export type wally_manifest = {
|
|
||||||
package: {
|
|
||||||
name: string,
|
|
||||||
version: string,
|
|
||||||
registry: string,
|
|
||||||
realm: string,
|
|
||||||
license: string?,
|
|
||||||
exclude: { string }?,
|
|
||||||
include: { string }?,
|
|
||||||
},
|
|
||||||
dependencies: {
|
|
||||||
[string]: string,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
export type environment = "luau" | "lune" | "roblox" | "roblox_server"
|
|
||||||
export type pesde_dependency = {
|
|
||||||
name: string,
|
|
||||||
version: string,
|
|
||||||
index: string?,
|
|
||||||
target: environment?,
|
|
||||||
} | {
|
|
||||||
wally: string,
|
|
||||||
version: string,
|
|
||||||
index: string?,
|
|
||||||
} | {
|
|
||||||
repo: string,
|
|
||||||
rev: string,
|
|
||||||
path: string?,
|
|
||||||
}
|
|
||||||
|
|
||||||
export type pesde_manifest = {
|
|
||||||
name: string,
|
|
||||||
version: string,
|
|
||||||
description: string?,
|
|
||||||
license: string?,
|
|
||||||
authors: { string }?,
|
|
||||||
repository: string?,
|
|
||||||
private: boolean?,
|
|
||||||
includes: { string }?,
|
|
||||||
pesde_version: string?,
|
|
||||||
workspace_members: { string }?,
|
|
||||||
|
|
||||||
target: {
|
|
||||||
environment: environment,
|
|
||||||
lib: string,
|
|
||||||
bin: string?,
|
|
||||||
build_files: { string }?,
|
|
||||||
},
|
|
||||||
|
|
||||||
scripts: {
|
|
||||||
roblox_sync_config_generator: string?,
|
|
||||||
sourcemap_generator: string?,
|
|
||||||
|
|
||||||
[string]: string,
|
|
||||||
}?,
|
|
||||||
|
|
||||||
indices: {
|
|
||||||
default: string,
|
|
||||||
|
|
||||||
[string]: string,
|
|
||||||
},
|
|
||||||
wally_indices: {
|
|
||||||
default: string,
|
|
||||||
|
|
||||||
[string]: string,
|
|
||||||
}?,
|
|
||||||
|
|
||||||
overrides: {
|
|
||||||
[string]: pesde_dependency,
|
|
||||||
}?,
|
|
||||||
patches: {
|
|
||||||
[string]: { [string]: string },
|
|
||||||
}?,
|
|
||||||
|
|
||||||
dependencies: {
|
|
||||||
[string]: pesde_dependency,
|
|
||||||
}?,
|
|
||||||
peer_dependencies: {
|
|
||||||
[string]: pesde_dependency,
|
|
||||||
}?,
|
|
||||||
dev_dependencies: {
|
|
||||||
[string]: pesde_dependency,
|
|
||||||
}?,
|
|
||||||
}
|
|
||||||
|
|
||||||
return {}
|
|
3
pesde.lock
Normal file
3
pesde.lock
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
name = "marked/jecs"
|
||||||
|
version = "0.5.3"
|
||||||
|
target = "luau"
|
|
@ -5,5 +5,4 @@
|
||||||
|
|
||||||
[tools]
|
[tools]
|
||||||
lune = "lune-org/lune@0.8.9"
|
lune = "lune-org/lune@0.8.9"
|
||||||
pesde = "daimond113/pesde@0.6.1+registry.0.2.2"
|
pesde = "daimond113/pesde@0.6.0+registry.0.2.0"
|
||||||
luau-lsp = "johnnymorganz/luau-lsp@1.37.0" # https://discord.com/channels/385151591524597761/1259775232533856327/1326154624335347732
|
|
||||||
|
|
Loading…
Reference in a new issue