-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Compilation ko KR
μ»΄νμΌμ μ€νκ°λ₯ν νμΌμ λ§λλ κ³Όμ μ λλ€. λ§μ½ ASFμ μμ μ΄ λ§λ λ³κ²½μ¬νμ μΆκ°νκ³ μΆκ±°λ 곡μ λ¦΄λ¦¬μ€ μμ μ 곡νλ μ€ννμΌμ λ¬΄μ¨ μ΄μ μμ건 μ λ’°νμ§ μλ κ²½μ° νκ² λ©λλ€. λ§μ½ λΉμ μ΄ κ°λ°μκ° μλλΌ μ¬μ©μλΌλ©΄ λλΆλΆ μ΄λ―Έ μ»΄νμΌλ λ°μ΄λ리λ₯Ό μ¬μ©νκΈΈ μν κ²λλ€. νμ§λ§ μμ λ§μ λ°μ΄λ리λ₯Ό μ¬μ©νκ³ μΆκ±°λ λκ° μλ‘μ΄ κ²μ λ°°μ°κ³ μΆλ€λ©΄ κ³μ μ½μΌμκΈ° λ°λλλ€.
ASFλ νμλ‘ νλ λꡬλ₯Ό λͺ¨λ κ°μ§κ³ λ§ μλ€λ©΄ νμ¬ μ§μλλ μ΄λ ν νλ«νΌμμλ μ»΄νμΌ λ μ μμ΅λλ€.
Regardless of platform, you need full .NET SDK (not just runtime) in order to compile ASF. Installation instructions can be found on .NET download page. You need to install appropriate .NET SDK version for your OS. μ±κ³΅μ μΈ μ€μΉ νμ dotnet
λͺ
λ Ήμ΄ μλνκ³ μ€νλμ΄μΌ ν©λλ€. dotnet --info
λ‘ μλ μ¬λΆλ₯Ό νμΈν μ μμ΅λλ€. Also ensure that your .NET SDK matches ASF runtime requirements.
Assuming you have .NET SDK operative and in appropriate version, simply navigate to source ASF directory (cloned or downloaded and unpacked ASF repo) and execute:
dotnet publish ArchiSteamFarm -c "Release" -o "out/generic"
If you're using Linux/macOS, you can instead use cc.sh
script which will do the same, in a bit more complex manner.
μ»΄νμΌμ΄ μ±κ³΅μ μΌλ‘ λλλ©΄ out/generic
λλ ν 리μ μμ€
λ§μΌλ‘ λ ASFκ° μμ΅λλ€. μ΄κ²μ 곡μ μΌλ°
ASF λΉλλ λμΌνμ§λ§, μ체 λΉλμ μ ν©νλλ‘ UpdateChannel
κ³Ό UpdatePeriod
μ΄ 0
κ°μΌλ‘ λμ΄μλ€λ μ λ§ λ€λ¦
λλ€.
You can also generate OS-specific .NET package if you have a specific need. In general you shouldn't do that because you've just compiled generic
flavour that you can run with your already-installed .NET runtime that you've used for the compilation in the first place, but just in case you want to:
dotnet publish ArchiSteamFarm -c "Release" -o "out/linux-x64" -r "linux-x64" --self-contained
λ¬Όλ‘ λμμΌλ‘ νλ OS μν€ν
μ³μ λ°λΌ linux-x64
λ₯Ό win-x64
λ±μΌλ‘ λ³κ²½νμμμ€. μ΄ λΉλλ μ
λ°μ΄νΈκ° λΉνμ±νλ©λλ€. When building --self-contained
you can also optionally declare two more switches: -p:PublishTrimmed=true
will produce trimmed build, while -p:PublishSingleFile=true
will produce a single file. Adding both will result in the same settings we use for our own builds.
While the above steps are everything that is required to have a fully working build of ASF, you may also be interested in building ASF-ui, our graphical web interface. From ASF side, all you need to do is dropping ASF-ui build output in standard ASF-ui/dist
location, then building ASF with it (again, if needed).
ASF-ui is part of ASF's source tree as a git submodule, ensure that you've cloned the repo with git clone --recursive
, as otherwise you'll not have the required files. You'll also need a working NPM, Node.js comes with it. If you're using Linux/macOS, we recommend our cc.sh
script, which will automatically cover building and shipping ASF-ui (if possible, that is, if you're meeting the requirements we've just mentioned).
In addition to the cc.sh
script, we also attach the simplified build instructions below, refer to ASF-ui repo for additional documentation. From ASF's source tree location, so as above, execute the following commands:
rm -rf "ASF-ui/dist" # ASF-ui doesn't clean itself after old build
npm ci --prefix ASF-ui
npm run-script deploy --prefix ASF-ui
rm -rf "out/generic/www" # Ensure that our build output is clean of the old files
dotnet publish ArchiSteamFarm -c "Release" -o "out/generic" # Or accordingly to what you need as per the above
You should now be able to find the ASF-ui files in your out/generic/www
folder. ASF will be able to serve those files to your browser.
Alternatively, you can simply build ASF-ui, whether manually or with the help of our repo, then copy the build output over to ${OUT}/www
folder manually, where ${OUT}
is the output folder of ASF that you've specified with -o
parameter. This is exactly what ASF is doing as part of the build process, it copies ASF-ui/dist
(if exists) over to ${OUT}/www
, nothing fancy.
If you'd like to edit ASF code, you can use any .NET compatible IDE for that purpose, although even that is optional, since you can as well edit with a notepad and compile with dotnet
command described above.
If you don't have a better pick, we can recommend latest Visual Studio Code, which is sufficient for even more advanced needs. Of course you can use whatever you want to, for reference we use JetBrains Rider for ASF development, although it's not a free solution.
main
branch is not guaranteed to be in a state that allows successful compilation or flawless ASF execution in the first place, since it's development branch just like stated in our release cycle. ASFλ₯Ό μμ€μμ μ»΄νμΌνκ±°λ μ°Έμ‘°νλ €λ©΄ λͺ©μ μ λ§λ μ μ ν νκ·Έ λ₯Ό μ¬μ©ν΄μΌ ν©λλ€. μ΄λ μ΅μν μ±κ³΅μ μΈ μ»΄νμΌμ 보μ₯νκ³ , μμ 릴리μ€λ‘ νμλ λΉλλ κ±°μ ν μλ μ€νλ κ°λ₯ν©λλ€. In order to check the current "health" of the tree, you can use our CI - GitHub.
Official ASF releases are compiled by GitHub, with latest .NET SDK that matches ASF runtime requirements. After passing tests, all packages are deployed as the release, also on GitHub. This also guarantees transparency, since GitHub always uses official public source for all builds, and you can compare checksums of GitHub artifacts with GitHub release assets. ASF κ°λ°μλ κ°μΈ κ°λ°κ³Όμ κ³Ό λλ²κΉ μ μ μΈνκ³ λ μ€μ€λ‘ μ»΄νμΌνκ±°λ λΉλλ₯Ό κ²μνμ§ μμ΅λλ€.
In addition to the above, ASF maintainers manually validate and publish build checksums on independent from GitHub, remote ASF server, as additional security measure. This step is mandatory for existing ASFs to consider the release as a valid candidate for auto-update functionality.
- π‘ Home
- π§ νκ²½μ€μ
- π¬ FAQ
- βοΈ Setting up (start here)
- π₯ λ°±κ·ΈλΌμ΄λ κ²μ λ±λ‘κΈ°
- π’ Commands
- π οΈ Compatibility
- 𧩠ItemsMatcherPlugin
- π Management
- β±οΈ Performance
- π‘ Remote communication
- πͺ Steam κ°μ‘± 곡μ
- π Trading