-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version 2.0.0, simplified usage, custom channl name
- Loading branch information
1 parent
2facdb6
commit e2df6b7
Showing
4 changed files
with
51 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
versionChecker = love.thread.newThread("lib/itchy/check.lua") -- wherever you save it.. | ||
versionChecker:start({ | ||
target = "guard13007/asteroid-dodge", -- target/url must be defined | ||
version = "1.0.0" -- optional | ||
}) | ||
|
||
newVersion = love.thread.getChannel("itchy") | ||
if newVersion:getCount() > 0 then | ||
local data = newVersion:demand() | ||
-- easiest usage is to just print something like this to the user | ||
print("Version: 1.0.0 Latest version: " .. data.message) | ||
end |