Skip to content

Commit

Permalink
Prep for release (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel authored Jan 20, 2024
1 parent b41dbb6 commit f383420
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 24 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ jobs:
echo "MODEL_FILE=$name-$sha.rbxm" >> $GITHUB_ENV
- run: just init

- name: Build
run: just build-here prod ${{ env.MODEL_NAME }}
- run: just build-here prod ${{ env.MODEL_FILE }}

- uses: actions/upload-artifact@v3
with:
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- run: just init

- name: Remove spec files
run: rm -rf **/*.spec.lua

- name: Get model file name
run: |
name=$(just _get-plugin-name)
echo "MODEL_FILE=$name.rbxm" >> $GITHUB_ENV
- name: Build
run: just build-here prod ${{ env.MODEL_NAME }}
- run: just build-here prod

- uses: softprops/action-gh-release@v1
if: ${{ github.event.release }}
with:
files: ${{ env.MODEL_FILE }}
files: |
*.rbxm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Swatch

Use any VSCode theme in Roblox Studio.
Swatch is a plugin for Roblox Studio that can search for VSCode themes and apply them to Studio's script editor.

## Installation

- Download from the Roblox Marketplace
Install Swatch from the [Roblox Marketplace](https://create.roblox.com/marketplace/asset/16016821748/Swatch)

## Development

Install prerequisites:
Requirements:
- [Visual Studio Code](https://code.visualstudio.com/) and the following extensions:
- [Selene](https://marketplace.visualstudio.com/items?itemName=Kampfkarren.selene-vscode)
- [StyLua](https://marketplace.visualstudio.com/items?itemName=JohnnyMorganz.stylua)
Expand Down
4 changes: 2 additions & 2 deletions plugin/build.project.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "rbxtheme",
"name": "Swatch",
"tree": {
"Packages": {
"$path": "Packages"
},
"$path": "build"
}
}
}
4 changes: 2 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN apt-get install -y \
COPY ./server/src /server
WORKDIR /server

# HACK: Need to install a forked Lune that binds servers to 0.0.0.0
# HACK: Need to install Lune from its main branch to bind servers to 0.0.0.0
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN apt-get install -y git gcc
RUN git clone --single-branch --branch serve-from-other-ips https://github.com/vocksel/lune
RUN git clone https://github.com/lune-org/lune
RUN cargo build --release --manifest-path lune/Cargo.toml
CMD [ "./lune/target/release/lune", "run", "server.luau" ]

Expand Down
5 changes: 3 additions & 2 deletions server/src/server.luau
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local getThemes = require("./routes/getThemes")
local getExtensions = require("./routes/getExtensions")
local logging = require("./logging")

local ADDRESS = process.env.ADDRESS or "http://0.0.0.0"
local PORT = tonumber(process.env.PORT) or 8080

local routes = {
Expand All @@ -19,7 +20,7 @@ local routes = {
}

net.serve(PORT, {
address = "http://0.0.0.0",
address = ADDRESS,
handleRequest = function(request)
logging.debug(`{request.method} {request.path}`)

Expand Down Expand Up @@ -48,4 +49,4 @@ net.serve(PORT, {
}
end,
})
logging.info("server started on port", PORT)
logging.info(`server started at {ADDRESS}:{PORT}`)

0 comments on commit f383420

Please sign in to comment.