Skip to content

Commit

Permalink
minor workflow adjustment to not add unported utils to other builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nightcycle committed Jul 26, 2024
1 parent fb702b0 commit 18c523f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions scripts/compile/release-edit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ for init_file in $(find "src/Util" -name "init.luau"); do
fi

echo "$init_file"
# replace the file content with 'return require(script:WaitForChild("$build_focus"))'
echo 'return require(script:WaitForChild("'${build_focus}'"))' > "$init_file"

# if build_focus == "ColdFusion" then echo filepath
if [[ "$build_focus" == "ColdFusion" ]]; then
echo 'return require(script:WaitForChild("'${build_focus}'"))' > "$init_file"
else
echo 'return {}'
fi

done

for init_file in $(find "src/Component" -name "init.luau"); do
Expand All @@ -19,6 +25,5 @@ for init_file in $(find "src/Component" -name "init.luau"); do
echo 'return require(script:WaitForChild("'${build_focus}'"))' > "$init_file"
done


package_full_name="nightcycle/synthetic-$package_suffix"
sed -i "s#name = \".*\"#name = \"$package_full_name\"#" wally.toml
4 changes: 2 additions & 2 deletions src/Util/PopUp/_Config.story.luau
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local HINT_ANCHOR_POINT_KEY = "HintAnchorPoint"
return function(frame: Frame)
local maid = Maid.new()
task.spawn(function()
local module = require(script.Parent)
local Module = require(script.Parent:WaitForChild("ColdFusion"))

local textLabel = maid:GiveTask(Instance.new("TextLabel"))
textLabel.Size = UDim2.fromOffset(200, 50)
Expand All @@ -41,7 +41,7 @@ return function(frame: Frame)
local hintAnchorPointState = _Value(Vector2.zero)

local container =
maid:GiveTask(module.ColdFusion.fromGuiObject(textLabel, anchorPointState, hintAnchorPointState))
maid:GiveTask(Module.fromGuiObject(textLabel, anchorPointState, hintAnchorPointState))

container:SetAttribute(ANCHOR_POINT_KEY, anchorPointState:Get())
maid:GiveTask(container:GetAttributeChangedSignal(ANCHOR_POINT_KEY):Connect(function()
Expand Down

0 comments on commit 18c523f

Please sign in to comment.