Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions build/trivalent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,25 @@ Source69: chromium-version.txt

Name: %{chromium_name}
%{lua:
local f = io.open(macros['_sourcedir']..'/chromium-version.txt', 'r')
local content = f:read "*all"
-- This will dynamically set the version based on chromium's latest stable release channel
print("Version: "..content.."\n")
local f = io.open(macros['_sourcedir']..'/chromium-version.txt', 'r')
local version_tag = f:read "*all"

-- This IS NOT the version of the browser
-- It is only used if it is greater than the automated version detection
-- The point is to update to an arbitrary greater release tag, like early stable or beta tags
local off_version_tag = "0" -- "142.0.7444.52"

-- Strip the dots to make it just a number and compare
-- If greater than, we use the off-version
if string.gsub(off_version_tag, "%.", "") > string.gsub(version_tag, "%.", "") then
version_tag = off_version_tag
end

-- This will dynamically set the version based on chromium's latest stable release channel
print("Version: "..version_tag.."\n")

-- This will automatically increment the release every ~1 hour
print("Release: "..(os.time() // 4000).."\n")
-- This will automatically increment the release every ~1 hour
print("Release: "..(os.time() // 4000).."\n")
}
Summary: A security-focused browser built upon Google's Chromium web browser
Url: https://github.com/secureblue/Trivalent
Expand Down