- Clone https://github.com/Frogging-Family/wine-tkg-git into an empty folder. Set up the configuration how you wish (make sure to use
debuntu
as well). - Drop the
build.sh
script adjacent to the topwine-tkg-git
folder and run it. - (Optionally) delete the docker container with
docker container rm wine-build
once you're done (if you don't care about ccache or inputting your timezone again). - Profit.
This file contains hidden or 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
local function readableNumber(number: number, decimalCount: number?): string | |
local threshold = 1e-9 | |
local remainder = math.abs(number)%1 | |
if math.abs(1 - remainder) < threshold then | |
return tostring(math.round(number)) | |
end | |
if not decimalCount then | |
decimalCount = 2 | |
end |
This file contains hidden or 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
local function readableNumber(number: number, decimals: number) | |
-- If the number is whole, just round and convert to a string that way | |
if math.abs(number)%1 < 1e-9 then | |
return tostring(math.round(number)) | |
end | |
-- Format as a float to the number of decimals (e.g. %.2f = 2 decimals) | |
local formatted = string.format(string.format("%%.%df", math.round(decimals)), number) | |
-- Find the decimal point | |
local point = string.find(formatted, "%.") | |
-- Find as many zeros on the end as possible (the $ anchor matches the end of the string) |
I've attached a script which will automatically walk you through the entire workaround process.
ChromeOS users should run these commands inside of your Linux Terminal (not crosh).
- Run
cd ~/Downloads
to navigate to yourDownloads
folder. - Download the script. (E.g. by running
wget https://gist.githubusercontent.com/Hexcede/7dfff16fbda540aa58b4381bd0c81c73/raw/setup_studio.sh
) - Run it via
bash setup_studio.sh
.