Skip to content

Commit

Permalink
Merge pull request #10 from max-bacon/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
max-bacon authored Aug 14, 2023
2 parents 594e782 + 0c4a1d1 commit 9550370
Show file tree
Hide file tree
Showing 483 changed files with 18,853 additions and 219,606 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/deploy_dev.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Dev
name: Deploy Dev (Lync)

on:
push:
Expand All @@ -9,18 +9,28 @@ jobs:

deploy:
name: Deploy
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Checkout code

- name: Install Node.js
uses: actions/setup-node@v3

- name: Checkout repo
uses: actions/checkout@v3

- name: Checkout Lync
uses: actions/checkout@master
with:
repository: Iron-Stag-Games/Lync
path: Lync

- uses: ok-nick/setup-aftman@v0.3.0
name: Install Aftman
with:
token: ${{ secrets.GITHUB_TOKEN }}

- run: wally install

- run: rojo build -o game.rbxlx

- run: rbxcloud experience publish -f game.rbxlx -p ${{ secrets.DEV_PLACE_ID }} -u ${{ secrets.DEV_UNIVERSE_ID }} -t published -a ${{ secrets.API_KEY }}
- run: node "Lync/Lync/index.js" lync.project.json OFFLINE

- run: rbxcloud experience publish -f BuildScripts/Build/Build.rbxl -p ${{ secrets.DEV_PLACE_ID }} -u ${{ secrets.DEV_UNIVERSE_ID }} -t published -a ${{ secrets.API_KEY }}
22 changes: 16 additions & 6 deletions .github/workflows/deploy_prod.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Prod
name: Deploy Prod (Lync)

on:
push:
Expand All @@ -9,18 +9,28 @@ jobs:

deploy:
name: Deploy
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Checkout code

- name: Install Node.js
uses: actions/setup-node@v3

- name: Checkout repo
uses: actions/checkout@v3

- name: Checkout Lync
uses: actions/checkout@master
with:
repository: Iron-Stag-Games/Lync
path: Lync

- uses: ok-nick/setup-aftman@v0.3.0
name: Install Aftman
with:
token: ${{ secrets.GITHUB_TOKEN }}

- run: wally install
- run: rojo build -o game.rbxlx

- run: node "Lync/Lync/index.js" lync.project.json OFFLINE

- run: rbxcloud experience publish -f game.rbxlx -p ${{ secrets.PROD_PLACE_ID }} -u ${{ secrets.PROD_UNIVERSE_ID }} -t published -a ${{ secrets.API_KEY }}
22 changes: 16 additions & 6 deletions .github/workflows/deploy_stage.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Stage
name: Deploy Stage (Lync)

on:
push:
Expand All @@ -9,18 +9,28 @@ jobs:

deploy:
name: Deploy
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Checkout code

- name: Install Node.js
uses: actions/setup-node@v3

- name: Checkout repo
uses: actions/checkout@v3

- name: Checkout Lync
uses: actions/checkout@master
with:
repository: Iron-Stag-Games/Lync
path: Lync

- uses: ok-nick/setup-aftman@v0.3.0
name: Install Aftman
with:
token: ${{ secrets.GITHUB_TOKEN }}

- run: wally install
- run: rojo build -o game.rbxlx

- run: node "Lync/Lync/index.js" lync.project.json OFFLINE

- run: rbxcloud experience publish -f game.rbxlx -p ${{ secrets.STAGE_PLACE_ID }} -u ${{ secrets.STAGE_UNIVERSE_ID }} -t published -a ${{ secrets.API_KEY }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ temp/

*.rbxlx.lock
*.rbxl.lock

BuildScripts/Build/*

!BuildScripts/Build/.gitkeep

!default.base.rbxl
7 changes: 7 additions & 0 deletions .luaurc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"languageMode": "strict",
"lint": { "*": true, "LocalUnused": false, "FunctionUnused": false, "ImportUnused": false},
"lintErrors": true,
"typeErrors": true,
"globals": []
}
61 changes: 0 additions & 61 deletions .lune/extract.lua

This file was deleted.

68 changes: 68 additions & 0 deletions .lune/extract.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
--[[
lune extract.luau
]]

local roblox = require("@lune/roblox")
local fs = require("@lune/fs")

local ignore = {
"Camera",
"Packages",
"Terrain",
}

local restrict = {}

local placeFile = fs.readFile(".lune/map.rbxl")
local game = roblox.deserializePlace(placeFile)

local function check(name, checkArr)
for _, c in pairs(checkArr) do
if c == name then
return true
end
end
return false
end

local function isFile(name: string)
-- print(name)
if fs.isFile(name .. ".rbxm") then
return true
else
return false
end
end

local function main(save: string, loc)
local Models = loc
fs.writeDir(save)

for _, entryName in fs.readDir(save) do
if fs.isFile(entryName) then
fs.removeFile(entryName)
end
end

for _, model in ipairs(Models:GetChildren()) do
print(model.Name)
if not check(model.Name, ignore) then
if isFile(save .. model.Name) and not check(model.Name, restrict) then
local i = 0
repeat
i = i + 1
until not isFile(save .. model.Name .. i)

fs.writeFile(save .. model.Name .. i .. ".rbxm", roblox.serializeModel({model}))
else
fs.writeFile(save .. model.Name .. ".rbxm", roblox.serializeModel({model}))
end
end
end
end

main("assets/Workspace/", game.Workspace)
main("assets/Lighting/", game.Lighting)
main("assets/ServerStorage/", game.ServerStorage)
38 changes: 0 additions & 38 deletions .lune/lighting-extract.lua

This file was deleted.

44 changes: 44 additions & 0 deletions .lune/lighting-extract.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
--[[
lune lighting-extract.luau
]]

local roblox = require("@lune/roblox")
local fs = require("@lune/fs")

local save = "assets/Lighting/"

local placeFile = fs.readFile(".lune/map.rbxl")
local game = roblox.deserializePlace(placeFile)

local function isFile(name: string)
if fs.isFile(name .. ".rbxm") then
return true
else
return false
end
end

local Models = game.Lighting
fs.writeDir(save)

for _, entryName in fs.readDir(save) do
if fs.isFile(entryName) then
fs.removeFile(entryName)
end
end

for _, model in ipairs(Models:GetChildren()) do
print(model.Name)
if isFile(save .. model.Name) then
local i = 0
repeat
i = i + 1
until not isFile(save .. model.Name .. i)

fs.writeFile(save .. model.Name .. i .. ".rbxm", roblox.serializeModel({ model }))
else
fs.writeFile(save .. model.Name .. ".rbxm", roblox.serializeModel({ model }))
end
end
Binary file modified .lune/map.rbxl
Binary file not shown.
Loading

0 comments on commit 9550370

Please sign in to comment.