Skip to content

armgit / soju

Public Imported from GitHub
0

Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.

Soju: free open-source Wine stack for Battle.net + Diablo II: Resurrected on Apple Silicon

mikey928ca1ac96acf5
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..37c4da21ffb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+# 엔진/게임/계정 자산은 커밋하지 않는다 (용량 + 저작권)
+*.tar.xz
+*.tar.gz
+*.dmg
+winecx24/
+wswine.bundle/
+drive_c/
+*.reg
+
+# macOS
+.DS_Store
+.omc/
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000000..f288702d2fa
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/README.ko.md b/README.ko.md
new file mode 100644
index 00000000000..12f0b8be792
--- /dev/null
+++ b/README.ko.md
@@ -0,0 +1,43 @@
+# Soju (한국어)
+
+**Apple Silicon 맥에서 Battle.net과 디아블로 II: 레저렉션을 — 완전 무료 오픈소스 Wine 스택으로.**
+
+CodeWeavers가 GPL로 공개한 소스(Wine 11.0, CrossOver 26.3 소스 드롭)를 이 레포의 스크립트로 직접 빌드·조립합니다. 유료 소프트웨어 불필요.
+
+> 상태(2026-08): **전 구간 동작** — 배틀넷 로그인, Agent, D2R 인게임 렌더링(D3DMetal)까지. M4 Pro / macOS 26.5에서 검증.
+
+*[English README](README.md)*
+
+## 핵심 발견 3가지 🔑
+
+커뮤니티가 몇 달째 못 풀던 문제들의 해법:
+
+1. **`ROSETTA_ADVERTISE_AVX=1`** — D2R 로더는 AVX 명령어가 필수. 이 환경변수가 없으면 게임이 그래픽 초기화 전에 86MB/0%CPU로 영원히 멈춘다. "맥에서 D2R이 실행 안 됨"의 정체.
+2. **D3DMetal 심링크 레이아웃** — 애플 GPTK 라이브러리는 `lib/external/`에 실물을 두고, `lib/wine/x86_64-unix/`의 d3d10/11/12/dxgi.so는 **심링크**여야 한다. 복사하면 `@loader_path`가 어긋나 assertion 루프로 죽는다.
+3. **Battle.net Agent 서명검증 수정** — Agent는 접속한 클라이언트의 서명을 자기 작업폴더(버전 하위폴더) 기준 상대 파일명으로 검사한다. 서명된 `Battle.net.exe` 사본을 각 `Battle.net.NNNNN` 폴더에 넣으면 통과 (에러 `BLZBNTBNA00000005` 해결).
+
+함정 하나: 실행 체인에 애플 보호 바이너리(`nohup`, `arch` 등)를 두면 macOS가 `DYLD_*` 변수를 제거해 라이브러리를 못 찾는다.
+
+## 빠른 시작
+
+```bash
+# 1. GPL 소스에서 엔진 빌드 (시간 소요)
+scripts/build-engine.sh
+
+# 2. 보틀 생성 (기존 배틀넷 설치본을 레지스트리째 복제)
+DEST=~/.battlenet-macos/bottle scripts/setup-bottle.sh
+
+# 3. 플레이
+scripts/play.sh battlenet # 런처 → 로그인 → Play
+scripts/play.sh d2r # 게임 직접 실행
+scripts/play.sh kill # 전부 종료
+```
+
+**전제조건**: Apple Silicon 맥, Rosetta 2, Xcode CLT, Homebrew, 본인 소유의 게임/배틀넷 설치본. 초기 구성요소(보틀·D3DMetal·일부 dylib)는 CrossOver 체험판(무료) 설치본에서 1회 수집합니다 — 이 레포는 애플·블리자드·CodeWeavers의 어떤 바이너리도 포함하지 않습니다.
+
+## 라이선스
+
+- 이 레포의 스크립트·문서: **GPL-3.0**
+- 엔진은 CodeWeavers 공개 Wine 소스(GPL/LGPL)로 빌드 — 소스: `media.codeweavers.com/pub/crossover/source/`
+- 미포함(앞으로도): 애플 D3DMetal/GPTK(재배포 금지), CrossOver 앱 바이너리, 블리자드 파일 일체
+- 본 프로젝트는 CodeWeavers·Apple·Blizzard와 무관합니다. Battle.net과 Diablo는 Blizzard Entertainment의 상표입니다.
diff --git a/README.md b/README.md
new file mode 100644
index 00000000000..1752780c964
--- /dev/null
+++ b/README.md
@@ -0,0 +1,55 @@
+# Soju
+
+**Run Battle.net and Diablo II: Resurrected on Apple Silicon Macs — with a fully free, open-source Wine stack.**
+
+Built from CodeWeavers' published GPL sources (Wine 11.0, CrossOver 26.3 source drop), compiled and assembled by scripts in this repo. No paid software required.
+
+> Status (2026-08): **Working end-to-end** — Battle.net login, Agent, and D2R in-game rendering (D3DMetal), verified on an M4 Pro running macOS 26.5.
+
+*[한국어 README](README.ko.md)*
+
+## Why this exists
+
+Community Wine builds (Whisky, Kegworks-era engines) stopped working with modern Battle.net and D2R. The commercial option works, but the underlying Wine engine is GPL — so we built it ourselves and documented every wall we hit. Three of those walls had never been publicly solved:
+
+### The three keys 🔑
+
+1. **`ROSETTA_ADVERTISE_AVX=1`** — D2R's loader requires AVX instructions. Without this env var, the game freezes forever at ~86 MB RSS with 0% CPU, before any graphics init. This is why D2R "hangs at launch" on non-CrossOver Wine builds.
+
+2. **D3DMetal symlink layout** — Apple's Game Porting Toolkit libraries must live in `lib/external/` with `lib/wine/x86_64-unix/{d3d10,d3d11,d3d12,dxgi}.so` as **symlinks** into it. Copying the files instead breaks `@loader_path` resolution and D3DMetal dies in an assertion loop.
+
+3. **Battle.net Agent caller-signature fix** — the Agent verifies the signature of the connecting client using a relative filename resolved against its CWD (a versioned subfolder). Seeding a copy of the signed `Battle.net.exe` into each `Battle.net.NNNNN` subfolder makes verification pass (fixes error `BLZBNTBNA00000005`).
+
+Plus one trap: never put Apple platform binaries (`nohup`, `arch`, …) in the launch chain — macOS strips `DYLD_*` variables when exec'ing them.
+
+## Quick start
+
+```bash
+# 1. Build the engine from GPL sources (takes a while; downloads ~150 MB source)
+scripts/build-engine.sh
+
+# 2. Create a bottle (copies an existing Battle.net install, registry included)
+DEST=~/.battlenet-macos/bottle scripts/setup-bottle.sh
+
+# 3. Play
+scripts/play.sh battlenet # launcher → log in → hit Play
+scripts/play.sh d2r # direct game launch
+scripts/play.sh kill # stop everything
+```
+
+**Prerequisites**: Apple Silicon Mac, Rosetta 2, Xcode Command Line Tools, Homebrew, and your own copies of the game/Battle.net (this repo ships no Blizzard files). Initial components (the bottle, D3DMetal, and a few x86_64 dylibs) are harvested **once** from a local CrossOver install — the free trial is sufficient. Nothing from Apple, Blizzard, or CodeWeavers is redistributed by this repo.
+
+## What's in the repo
+
+- `scripts/build-engine.sh` — full engine build recipe (freetype cross-build, gnutls wiring, GPTK layout, entitlements)
+- `scripts/setup-bottle.sh` / `scripts/play.sh` — bottle creation and the verified launch environment
+- `docs/DIAGNOSIS.md` — deep-dive on the CEF renderer crash and the Agent signature failure
+- `docs/D2R-GAME-LAUNCH.md` — the D2R loader investigation, dead ends included
+- `research/` — raw log evidence for the findings
+
+## Licensing
+
+- Scripts and docs in this repo: **GPL-3.0** (see LICENSE)
+- The engine is built from CodeWeavers' published Wine sources (GPL/LGPL) — sources at `media.codeweavers.com/pub/crossover/source/`
+- **Not included and never will be**: Apple D3DMetal/GPTK binaries (non-redistributable), CrossOver application binaries, any Blizzard files
+- This project is not affiliated with CodeWeavers, Apple, or Blizzard Entertainment. Battle.net and Diablo are trademarks of Blizzard Entertainment. Use at your own risk; online play with third-party compatibility layers is at your own discretion.
diff --git a/docs/D2R-GAME-LAUNCH.md b/docs/D2R-GAME-LAUNCH.md
new file mode 100644
index 00000000000..04936151693
--- /dev/null
+++ b/docs/D2R-GAME-LAUNCH.md
@@ -0,0 +1,54 @@
+# 벽 3 — D2R 게임 본체 구동 (진행 중)
+
+로그인 + Agent + "playable" 인식까지 무료 스택으로 성공(벽1·2 해결). 그러나 **게임 본체 D2R.exe 실행**에서 막힘.
+
+## 증상
+- Battle.net이 D2R.exe를 실행(`Launched .../D2R.exe -uid osi`, gameRunning=1) 후 ~6~9초 만에 종료, 고아 프로세스만 0% CPU로 잔존.
+- D2R이 `D2R_loader.dll`까지 로드 후 **그래픽 이전 단계에서 정지**(WINHTTP·bcrypt 로드 후 무한 대기). 크래시 덤프/예외 없음.
+- 오프라인 직접 실행(`D2R.exe`, Battle.net 없이)도 동일하게 정지.
+
+## 근본 원인 (외부 요인, 우리 셋업 아님)
+2026-01 Blizzard이 D2R에 새 안티치트를 추가하며 **Rosetta 2 버그**를 유발. 이 때문에 **유료 CrossOver에서도 D2R이 안 뜨던 시기가 있었음**(CodeWeavers 공식 인정, Apple/Blizzard 수정 대기). 수정은 **macOS 26.4+ Rosetta 업데이트**로 제공.
+
+## 이 맥에서의 검증 (2026-08-26, macOS 26.5)
+- **진짜 CrossOver 26.3으로 D2R 실행 → 성공.** `[D3DMetal:LOG]` 렌더링, CPU 100%+, 게임 구동 확인. → macOS 26.5의 Rosetta 수정 + CrossOver 26.3 wine32on64가 조합되면 D2R 구동됨.
+- **무료 WineCX24(=CrossOver 24 커뮤니티 빌드)로는 실패** — 로더에서 정지. wine 버전이 너무 낮아 새 안티치트/Rosetta 경로 비호환.
+- frankea/Whisky v4.5(=CX26.3 changes를 wine-11.15 new-wow64로 리베이스)는 **로그인 CEF에서 크래시**(new-wow64라 벽1 재발). → D2R은 될지 몰라도 로그인이 깨짐.
+
+## 결론
+D2R 완주에 필요한 것 = **CrossOver 26급 wine32on64**(구식 32-on-64 + 최신 로더). 현재 이걸 만족하는 무료 빌드가 없음:
+- WineCX24: wine32on64 O, 최신 로더 X → 로더 정지
+- frankea v4.5: 최신 로더 O, wine32on64 X(new-wow64) → 로그인 CEF 크래시
+
+## 남은 선택지
+1. **CrossOver 26.3 GPL 소스로 wine32on64 직접 빌드** — 소스는 공개(`media.codeweavers.com/pub/crossover/source/crossover-sources-26.3.0.tar.gz`, 142MB, wine에 win32on64 지원 확인). 단, CrossOver의 빌드 오케스트레이션은 비공개라 빌드 과정을 재구성해야 함(대형 작업, Gcenx/Sikarugir 수준). D3DMetal(Apple GPTK, 소스 미포함)은 설치된 CrossOver에서 이식 가능(그래픽은 이미 검증됨).
+2. **커뮤니티 CX26 wine32on64 빌드 대기** — @dappermint가 CX26.3을 이미 리베이스 중. wine32on64 형태로 나오면 이 레포 스크립트로 즉시 적용, 벽1·2 해결분과 합쳐 완주 가능성. (가장 저비용)
+3. CrossOver 구매.
+
+## 이미 확보한 자산 (완주에 재사용)
+- 벽1 해결(wine32on64 엔진), 벽2 해결(버전폴더 exe seed), 검증 보틀, D3DMetal 이식법(그래픽 검증됨).
+- 엔진만 CX26급으로 교체되면 벽1·2·3 모두 해결되어 완주 예상.
+
+## 업데이트 (2026-08-27): CrossOver 26.3 wine 직접 빌드 완료 + D2R 로더 벽
+
+**성과**: CrossOver 26.3 GPL 소스(Wine 11.0)를 Apple Silicon에서 x86_64로 직접 빌드 성공(`scripts/build-engine.sh`). 무료·합법.
+- Battle.net **로그인 + Agent + osi playable 전부 동작** (렌더러 죽음 0, TLS/폰트 정상).
+- 즉 "무료로 Battle.net 구동"은 이 자체 빌드 엔진으로 달성.
+
+**남은 벽**: D2R.exe가 `D2R_loader.dll`(Blizzard 안티치트/DRM) 로드 직후 **86MB/0%CPU로 정지** (main thread `mach_msg` 대기, 전 스레드 idle=외부 응답 대기). 같은 Wine 11.0 소스인데 **설치된 CrossOver 26.3 바이너리로는 D2R 구동됨**(이 맥에서 확인), 우리 빌드로는 정지.
+
+**정지에 무관했던 시도(전부 86MB 동일)**: wine-mono 10.4.1 이식, CrossOver entitlement 서명, CrossOver 보틀 사용, DXMT(winemetal) 이식, msync/esync/fsync off, 배틀넷 세션 살린 상태의 -uid osi 실행.
+
+**해석**: 차이는 CrossOver 바이너리에만 있는 부분 — 공개 GPL 소스에 없는 **게임별 프로프라이어터리 처리(CW HACK/DXMT 완본)** 또는 Rosetta2-안티치트 상호작용의 빌드/서명 세부. CodeWeavers도 이 안티치트+Rosetta 문제로 수개월 고생(Apple 26.4 Rosetta 수정 필요)했던 바로 그 지점.
+
+**다음 후보**: (a) 우리 빌드 D2R vs CrossOver D2R를 동일 시점 sample 비교해 분기점 격리, (b) DXMT 완전본(d3d12 경로 포함) 확보, (c) 커뮤니티 CX26 wine32on64 빌드(@dappermint) 대기. 엔진은 재사용 준비 완료.
+
+## ✅ 최종 해결 (2026-08-27)
+
+위 "해석"은 틀렸다 — CrossOver 바이너리만의 비밀이 아니라 **실행 환경 변수**였다.
+
+**`ROSETTA_ADVERTISE_AVX=1`** — CrossOver의 `bin/wine` perl 래퍼가 조용히 설정하는 값. D2R 로더는 AVX 명령어 지원을 요구하며, Rosetta 2는 이 변수가 있어야 AVX를 CPUID에 광고한다. 이것 없이는 로더가 86MB/0%CPU로 영원히 대기한다(위에서 관찰한 그 정지).
+
+이후 그래픽은 D3DMetal 심링크 레이아웃(lib/external 실물 + x86_64-unix 심링크, 복사 금지)과 GPTK PE dll(d3d11/d3d12/dxgi) + `CX_ACTIVE_GRAPHICS_BACKEND=d3dmetal`로 해결. 자체 빌드 wine 11.0(신형 WoW64)에서 **D2R 인게임 렌더링 확인** (메모리 2.7GB, CPU 175%, D3DMetal 로그).
+
+전체 실행 조합은 `scripts/play.sh` 참고. wine32on64가 필요하다던 중간 결론도 폐기 — 신형 WoW64로도 CEF·게임 모두 동작한다(벽1의 진짜 원인은 엔진 계열이 아니라 조합 문제였음).
diff --git a/docs/DIAGNOSIS.md b/docs/DIAGNOSIS.md
new file mode 100644
index 00000000000..faf0f65dddd
--- /dev/null
+++ b/docs/DIAGNOSIS.md
@@ -0,0 +1,76 @@
+# 기술 진단
+
+macOS(Apple Silicon)에서 무료 Wine으로 Battle.net을 돌릴 때의 두 개의 벽과 그 원인.
+
+## 벽 1 — CEF 로그인 웹뷰 렌더러 크래시 (해결됨)
+
+### 증상
+로그인 창이 검은 화면 + 스피너만. 렌더러가 5초마다 재시작:
+```
+[Browser] Render process was terminated and reloaded automatically.
+wine: Unhandled exception 0x80000003 in thread XXX at address 6DDB00E1
+```
+크래시 스레드 백트레이스: 시작 직후 `0x000000fff40d6c`(잘못된 주소)로 점프 → int3. 프레임은 libcef 내부.
+
+### 원인
+stock Whisky / frankea 엔진(v3.1.1, v4.5beta, v2.5.0)은 전부 **신형 WoW64**(64비트 ntdll이 32비트를 thunk). Battle.net은 32비트 앱이고, 그 안의 CEF(Chromium)가 스레드를 생성하는 방식이 신형 WoW64 계층에서 깨진다. `bin/`에 `wine64`만 있고 `wine32on64`가 없는 것이 지표.
+
+### 해결
+**wine32on64**(구식 32-on-64, CrossOver 방식) 엔진 사용:
+- **WineCX 24.0.7** (KegworksCX, CrossOver 24 GPL 소스 커뮤니티 빌드)
+- 출처: `Sikarugir-App/Engines` 릴리스 → `WS12WineCX24.0.7.tar.xz`
+- 단일 `wine` 바이너리가 32on64 (Intel → Rosetta 2)
+- 결과: 렌더러 죽음 0, 로그인 웹앱 로드, **실제 로그인 성공**
+
+부수 조건:
+- 번들에 dylib이 없음 → Whisky 엔진의 `Wine/lib/*.dylib`를 번들 `bin/`에 복사 + `install_name_tool -add_rpath @loader_path/` + adhoc 재서명. MoltenVK는 `lib/wine/x86_64-unix/`에도 복사.
+- 유저 `AppData/Roaming/Battle.net`(Battle.net.config) 존재해야 로그인 URL 로드됨.
+- `--disable-gpu-compositing`로 실행 (소프트웨어 합성).
+- GL 에러(`SharedImageStub`, `Failed to create ... context for virtualization`)는 **무해** — 진짜 CrossOver도 동일하게 99개씩 냄.
+
+## 벽 2 — Battle.net Agent caller 서명 검증 실패 (해결됨)
+
+### 증상
+로그인 성공 후: `Oops! An error occurred while loading game information ... BLZBNTBNA00000005`.
+Battle.net 클라 로그:
+```
+[Agent] AgentClient failed to connect, CURL error=7
+[Agent] Agent restart limit exceeded
+```
+Agent 로그:
+```
+Unable to validate connecting process (268)
+Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+```
+
+### 근본 원인 (핵심)
+Agent는 자기한테 접속한 프로세스(Battle.net.exe 클라)가 정품 서명됐는지 `WinVerifyTrust`로 검사한다. wintrust 트레이스:
+```
+wintrust:dump_file_info pcwszFilePath: L"Battle.net.exe" ← 파일명만!
+wintrust:SOFTPUB_OpenFile returning 2 ← 2 = FILE_NOT_FOUND
+wintrust:WINTRUST_DefaultVerify returning 00000002 ← 검증 실패
+```
+반면 정상 검증(Agent.exe 자기 자신)은 **풀 경로**:
+```
+wintrust:dump_file_info pcwszFilePath: L"C:/ProgramData/Battle.net/Agent/Agent.exe"
+```
+
+**결론**: Agent가 접속 프로세스의 PID(268)로 이미지 경로를 조회했는데, wine이 **전체 경로 대신 basename(`Battle.net.exe`)만** 반환한다. wintrust는 상대 파일명을 CWD에서 못 찾아 FILE_NOT_FOUND → 서명 검증 실패 → caller 거부.
+
+- iphlpapi `GetExtendedTcpTable`(class 5 = TCP_TABLE_OWNER_PID_ALL)는 호출되고 PID(268)는 나옴 → PID 조회 자체는 됨.
+- 문제는 그 다음 **PID → 전체 이미지 경로** 변환.
+
+### 정확한 메커니즘 (추적 결과)
+- Agent는 `CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS)`로 프로세스를 열거해 접속 PID의 이름을 얻는다 → `PROCESSENTRY32.szExeFile` = basename `"Battle.net.exe"` (이건 Windows에서도 basename이 정상).
+- 이 basename을 `WinVerifyTrust`(WINTRUST_FILE_INFO.pcwszFilePath)에 그대로 넘긴다.
+- wine `dlls/wintrust/softpub.c`의 `SOFTPUB_OpenFile`이 `CreateFileW("Battle.net.exe", ...)` 호출 → 상대 경로라 **프로세스의 윈도우 CWD** 기준으로 해석.
+- Agent의 CWD(unix `lsof`로 확인) = `.../Program Files (x86)/Battle.net/Battle.net.NNNNN` (버전 하위폴더). 그런데 서명된 `Battle.net.exe`는 그 **부모** `.../Battle.net/`에 있음 → CWD엔 없음 → `CreateFileW` = ERROR_FILE_NOT_FOUND(2) → `WINTRUST_DefaultVerify returning 2` → caller 거부.
+- (Windows에선 이 코드가 통과 = Agent의 CWD가 Battle.net 루트이거나, 어쨌든 그 폴더에서 exe가 찾아짐. 즉 이건 wine의 CWD/파일해석 차이지 서명 자체 문제가 아님.)
+
+### 해결책 (채택)
+각 버전 하위폴더(`Battle.net.NNNNN`)에 **서명된 `Battle.net.exe` 사본**을 넣는다. 그러면 Agent의 CWD에서 상대 파일명이 유효한 서명 파일로 풀려 검증 통과.
+- `scripts/launch.sh`가 매 실행 시 루트의 `Battle.net.exe`를 모든 `Battle.net.[0-9]*` 하위폴더에 동기화(APFS 클론). 업데이트로 버전 번호가 바뀌어도 자동 대응.
+- **wine 재빌드/패치 불필요.** 결과: sig 실패 0, `InstallState (osi): playable=1`, `GameController: Selecting game family by id: OSI`(D2R).
+
+### (대안) 근본 wine 패치
+더 깔끔하게는 wine이 프로세스의 윈도우 CWD를 unix cwd와 동기화하거나, `SOFTPUB_OpenFile`이 실패 시 이미지 디렉토리를 탐색하게 패치할 수도 있으나, 파일 seed 방식이 재빌드 없이 견고하므로 채택하지 않음. 리눅스가 문제없는 것도 CWD 해석 차이 때문으로 추정.
diff --git a/research/SOLVED-evidence.txt b/research/SOLVED-evidence.txt
new file mode 100644
index 00000000000..57a313788f2
--- /dev/null
+++ b/research/SOLVED-evidence.txt
@@ -0,0 +1,14 @@
+=== 해결 후 로그(발췌): Agent 통과 + D2R playable ===
+D 2026-08-27 00:54:41.813413 [ProductState] {Main} InstallState (osi): currentOperation=Update currentOperationStatus=New installed=1 selectedRegion=us localVersion=0.0.0.0
+D 2026-08-27 00:54:43.078649 [ProductState] {Main} InstallState (osi): currentOperation=UpToDate currentOperationStatus=Paused optionalPackageInstalled=1 hasInstallModificationOptions=1 installPath=C:/Program Files (x86)/Diablo II Resurrected playable=1 canCreateShortcut=1 activeConfigKey=623f7a1f73eabb08ccb2b2046e3f9164 regionalVersions=(eu: {playable:true config_key:623f7a1f73eabb08ccb2b2046e3f9164}, kr: {playable:true config_key:623f7a1f73eabb08ccb2b2046e3f9164}, us: {playable:true config_key:623f7a1f73eabb08ccb2b2046e3f9164}) repairSupported=true localVersion=3.3.93847 latestVersion=93847 currentStage=Complete
+D 2026-08-27 00:54:43.470576 [ProductState] {Main} InstallState (osi): currentOperation=Update currentOperationStatus=New playable=0 regionalVersions=(eu: {playable:false config_key:623f7a1f73eabb08ccb2b2046e3f9164}, kr: {playable:false config_key:623f7a1f73eabb08ccb2b2046e3f9164}, us: {playable:false config_key:623f7a1f73eabb08ccb2b2046e3f9164}) currentStage=Setup
+D 2026-08-27 00:54:57.265334 [ProductState] {Main} InstallState (osi): currentOperationStatus=Waiting
+D 2026-08-27 00:54:57.909801 [ProductState] {Main} InstallState (osi): currentOperationStatus=Initializing downloadRemainingExists=1
+D 2026-08-27 00:54:58.409234 [ProductState] {Main} InstallState (osi):
+D 2026-08-27 00:54:59.009669 [ProductState] {Main} InstallState (osi):
+D 2026-08-27 00:54:59.010238 [ProductState] {Main} InstallState (osi): playable=1 regionalVersions=(eu: {playable:true config_key:623f7a1f73eabb08ccb2b2046e3f9164}, kr: {playable:true config_key:623f7a1f73eabb08ccb2b2046e3f9164}, us: {playable:true config_key:623f7a1f73eabb08ccb2b2046e3f9164})
+D 2026-08-27 00:54:59.662481 [ProductState] {Main} InstallState (osi): currentOperationStatus=Waiting
+D 2026-08-27 00:54:59.663388 [ProductState] {Main} InstallState (osi): currentStage=Complete
+D 2026-08-27 00:54:59.664853 [ProductState] {Main} InstallState (osi): currentOperation=UpToDate currentOperationStatus=Paused
+D 2026-08-27 00:54:59.970909 [GameController] {Main} Selecting game family by id: OSI
+agent unix cwd = 버전 하위폴더 Battle.net.17731 (lsof 확인)
diff --git a/research/agent-signature-failures.txt b/research/agent-signature-failures.txt
new file mode 100644
index 00000000000..4efe82ff89c
--- /dev/null
+++ b/research/agent-signature-failures.txt
@@ -0,0 +1,20 @@
+[I 2026-08-27 00:38:55.0876] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:55.0879] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:56.0139] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:56.0141] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:56.0397] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:56.0399] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:56.0657] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:56.0659] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:56.0915] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:56.0916] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:57.0174] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:57.0176] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:57.0435] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:57.0437] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:57.0696] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:57.0698] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:57.0953] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:57.0954] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
+[I 2026-08-27 00:38:58.0210] Unable to validate connecting process (268)
+[E 2026-08-27 00:38:58.0212] Failed Caller authorization due to signature for 'Battle.net.exe'(268)
diff --git a/research/wintrust-trace.txt b/research/wintrust-trace.txt
new file mode 100644
index 00000000000..6cf6af5cd07
--- /dev/null
+++ b/research/wintrust-trace.txt
@@ -0,0 +1,20 @@
+0110:trace:wintrust:dump_file_info pcwszFilePath: L"C:\\Program Files (x86)\\Battle.net\\battle.net.dll"
+0110:trace:wintrust:SOFTPUB_OpenFile returning 2
+0110:trace:wintrust:dump_file_info pcwszFilePath: L"C:\\Program Files (x86)\\Battle.net\\Battle.net.17731\\battle.net.dll"
+0144:trace:wintrust:dump_file_info pcwszFilePath: L"C:/ProgramData/Battle.net/Agent/Agent.exe"
+014c:trace:wintrust:dump_file_info pcwszFilePath: L"C:/ProgramData/Battle.net/Agent/Agent.9700/Agent.exe"
+01ec:trace:wintrust:dump_file_info pcwszFilePath: L"Battle.net.exe"
+01ec:trace:wintrust:SOFTPUB_OpenFile returning 2
+01e0:trace:wintrust:dump_file_info pcwszFilePath: L"Battle.net.exe"
+01e0:trace:wintrust:SOFTPUB_OpenFile returning 2
+0250:trace:wintrust:dump_file_info pcwszFilePath: L"C:\\Program Files (x86)\\Battle.net\\Battle.net.17731\\Battle.net Helper.dll"
+026c:trace:wintrust:dump_file_info pcwszFilePath: L"C:\\Program Files (x86)\\Battle.net\\Battle.net.17731\\Battle.net Helper.dll"
+01e4:trace:wintrust:dump_file_info pcwszFilePath: L"Battle.net.exe"
+01e4:trace:wintrust:SOFTPUB_OpenFile returning 2
+01e8:trace:wintrust:dump_file_info pcwszFilePath: L"Battle.net.exe"
+01e8:trace:wintrust:SOFTPUB_OpenFile returning 2
+01ec:trace:wintrust:dump_file_info pcwszFilePath: L"Battle.net.exe"
+01ec:trace:wintrust:SOFTPUB_OpenFile returning 2
+01e0:trace:wintrust:dump_file_info pcwszFilePath: L"Battle.net.exe"
+01e0:trace:wintrust:SOFTPUB_OpenFile returning 2
+01e4:trace:wintrust:dump_file_info pcwszFilePath: L"Battle.net.exe"
diff --git a/scripts/build-engine.sh b/scripts/build-engine.sh
new file mode 100755
index 00000000000..e036fa104b7
--- /dev/null
+++ b/scripts/build-engine.sh
@@ -0,0 +1,98 @@
+#!/usr/bin/env bash
+# CrossOver 26.3의 GPL 공개 소스에서 wine 11.0 엔진을 직접 빌드한다 (무료·합법).
+# 검증: 이 레시피의 각 단계는 2026-08 실제 빌드에서 개별 검증됨 (Battle.net + D2R 인게임 구동 확인).
+# 주의: 처음부터 끝까지 한 번에 재실행은 미검증 — 이슈 환영.
+#
+# 요구: Apple Silicon + Rosetta 2, Xcode CLT, Homebrew(arm64).
+set -euo pipefail
+
+WORK="${WORK:-$HOME/.battlenet-macos/build}"
+SRC_URL="https://media.codeweavers.com/pub/crossover/source/crossover-sources-26.3.0.tar.gz"
+FT_URL="https://download.savannah.gnu.org/releases/freetype/freetype-2.13.3.tar.gz"
+DEPS="$WORK/deps"
+ENGINE="${ENGINE:-$HOME/.battlenet-macos/cx26-engine}"
+# x86_64 dylib 공급처(gnutls 스택/MoltenVK): 설치된 CrossOver 또는 Whisky 엔진
+DYLIB_SRC="${DYLIB_SRC:-/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/lib64}"
+CXG="/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/lib64/apple_gptk/external"
+
+echo "==> 빌드 도구 설치 (bison 3.x, mingw-w64)"
+brew list bison >/dev/null 2>&1 || brew install bison
+brew list mingw-w64 >/dev/null 2>&1 || brew install mingw-w64
+brew list gnutls >/dev/null 2>&1 || brew install gnutls # 헤더용
+export PATH="/opt/homebrew/opt/bison/bin:/opt/homebrew/bin:$PATH"
+
+mkdir -p "$WORK" "$DEPS"
+
+echo "==> CrossOver 26.3 소스 + freetype 다운로드"
+[ -f "$WORK/cx-src.tar.gz" ] || curl -fL "$SRC_URL" -o "$WORK/cx-src.tar.gz"
+tar -xzf "$WORK/cx-src.tar.gz" -C "$WORK" sources/wine
+WINE="$WORK/sources/wine"
+
+echo "==> x86_64 freetype 빌드 (Rosetta)"
+[ -f "$WORK/ft.tar.gz" ] || curl -fL "$FT_URL" -o "$WORK/ft.tar.gz"
+tar -xzf "$WORK/ft.tar.gz" -C "$WORK"
+( cd "$WORK/freetype-2.13.3" && arch -x86_64 ./configure --prefix="$DEPS" \
+ --without-harfbuzz --without-png --without-brotli --without-bzip2 \
+ --enable-shared --disable-static CC="clang -arch x86_64" \
+ && arch -x86_64 make -j"$(sysctl -n hw.ncpu)" && arch -x86_64 make install )
+
+echo "==> x86_64 의존 dylib 확보 (gnutls 스택, MoltenVK)"
+# gnutls/nettle/gmp/... + libMoltenVK (CrossOver lib64 또는 Whisky 엔진 lib에서 조달)
+for d in libgnutls.30 libnettle.8 libhogweed.6 libgmp.10 libidn2.0 libunistring.5 \
+ libtasn1.6 libp11-kit.0 libintl.8 libiconv.2 libMoltenVK; do
+ find "$DYLIB_SRC" -name "$d*.dylib" -exec cp -c {} "$DEPS/lib/" \; 2>/dev/null || true
+done
+
+echo "==> wine configure (x86_64, new-wow64 i386+x86_64)"
+mkdir -p "$WORK/wine-build"; cd "$WORK/wine-build"
+arch -x86_64 "$WINE/configure" \
+ --enable-archs=i386,x86_64 --without-x --disable-tests \
+ FREETYPE_CFLAGS="-I$DEPS/include/freetype2" FREETYPE_LIBS="-L$DEPS/lib -lfreetype" \
+ GNUTLS_CFLAGS="-I/opt/homebrew/include" GNUTLS_LIBS="-L$DEPS/lib -lgnutls" \
+ LDFLAGS="-L$DEPS/lib" CC="clang -arch x86_64" CXX="clang++ -arch x86_64"
+# soname 보정 (dylib 실제 이름으로)
+sed -i '' 's|#define SONAME_LIBGNUTLS.*|#define SONAME_LIBGNUTLS "libgnutls.30.dylib"|' include/config.h
+
+echo "==> wine make"
+arch -x86_64 make -j"$(sysctl -n hw.ncpu)"
+arch -x86_64 make install DESTDIR="$WORK/install"
+
+echo "==> 엔진 조립 (dylib 배치 + D3DMetal + rpath + entitlement 서명)"
+rm -rf "$ENGINE"; mkdir -p "$ENGINE"
+cp -Rc "$WORK/install/usr/local/." "$ENGINE/"
+cp -c "$DEPS/lib/"*.dylib "$ENGINE/lib/" 2>/dev/null || true
+# D3DMetal(Apple GPTK, 재배포 불가 → 설치된 CrossOver에서 조달) — 그래픽용
+# 중요: 실물은 lib/external에, x86_64-unix엔 반드시 '심링크'(복사 금지 — @loader_path 어긋나 assertion 루프)
+mkdir -p "$ENGINE/lib/external"
+cp -Rc "$CXG/D3DMetal.framework" "$CXG/libd3dshared.dylib" "$ENGINE/lib/external/" 2>/dev/null || true
+GW="/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/lib64/apple_gptk/wine"
+cp -fc "$GW/x86_64-windows/"{d3d11,d3d12,dxgi}.dll "$ENGINE/lib/wine/x86_64-windows/" 2>/dev/null || true
+( cd "$ENGINE/lib/wine/x86_64-unix" && for f in d3d10.so d3d11.so d3d12.so dxgi.so; do ln -sf ../../external/libd3dshared.dylib "$f"; done )
+# wine-mono 10.4.1 (CrossOver에서 조달) — .NET 앱용
+mkdir -p "$ENGINE/share/wine/mono"
+cp -Rc "/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/wine/mono/wine-mono-10.4.1" \
+ "$ENGINE/share/wine/mono/" 2>/dev/null || true
+# rpath + entitlement 서명 (Rosetta/실행메모리)
+cat > "$WORK/ent.plist" <<'PL'
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0"><dict>
+<key>com.apple.security.cs.allow-unsigned-executable-memory</key><true/>
+<key>com.apple.security.cs.disable-executable-page-protection</key><true/>
+<key>com.apple.security.cs.disable-library-validation</key><true/>
+<key>com.apple.security.cs.allow-jit</key><true/>
+</dict></plist>
+PL
+for b in wine wine64 wineserver wine-preloader; do
+ f="$ENGINE/bin/$b"; [ -f "$f" ] || continue
+ install_name_tool -add_rpath "@loader_path/../lib" "$f" 2>/dev/null || true
+ codesign -f -s - --entitlements "$WORK/ent.plist" "$f" 2>/dev/null || true
+done
+
+echo "==> 완료: $ENGINE"
+DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib" "$ENGINE/bin/wine" --version
+echo
+echo "실행 예:"
+echo " export WINEPREFIX=<보틀> CX_GRAPHICS_BACKEND=d3dmetal WINEMSYNC=1"
+echo " export DYLD_FALLBACK_LIBRARY_PATH='$ENGINE/lib:/usr/lib'"
+echo " '$ENGINE/bin/wine' 'C:\\\\Program Files (x86)\\\\Battle.net\\\\Battle.net Launcher.exe' --disable-gpu-compositing"
+echo " (Apple 보호 바이너리(nohup 등)를 체인에 두면 DYLD_* 가 제거되니 서브셸 &로 백그라운드 실행)"
diff --git a/scripts/play.sh b/scripts/play.sh
new file mode 100755
index 00000000000..3fb02f57f8c
--- /dev/null
+++ b/scripts/play.sh
@@ -0,0 +1,49 @@
+#!/usr/bin/env bash
+# 디아블로 II 레저렉션 — 완전 무료 스택 실행 스크립트 (최종 검증 조합)
+#
+# 구성: 자체 빌드 wine 11.0 (CrossOver 26.3 GPL 소스) + D3DMetal(Apple GPTK)
+# 검증: 2026-08-27 — Battle.net 로그인/Agent/D2R 인게임 구동 확인
+#
+# 핵심 열쇠 3개 (이걸 몰라서 며칠 걸렸다):
+# 1) ROSETTA_ADVERTISE_AVX=1 — D2R 로더가 AVX 명령어 필수. 없으면 무한 대기(86MB 정지).
+# 2) D3DMetal 심링크 레이아웃 — lib/external에 실물, x86_64-unix엔 심링크.
+# 복사하면 @loader_path가 어긋나 assertion 루프. (frankea README 참고)
+# 3) Apple 보호 바이너리(nohup/arch 등)를 실행 체인에 두지 말 것 — DYLD_* 가 제거됨.
+set -euo pipefail
+
+ENGINE="${ENGINE:-$HOME/.battlenet-macos/cx26-engine}"
+# 보틀(가상 C드라이브) 경로 — setup-bottle.sh로 만든 위치를 지정
+export WINEPREFIX="${WINEPREFIX:-$HOME/.battlenet-macos/bottle}"
+
+export WINEDEBUG="${WINEDEBUG:-fixme-all}"
+export WINEMSYNC=1
+export ROSETTA_ADVERTISE_AVX=1
+export CX_ACTIVE_GRAPHICS_BACKEND=d3dmetal
+export CX_GRAPHICS_BACKEND=d3dmetal
+export CX_APPLEGPTK_LIBD3DSHARED_PATH="$ENGINE/lib/external/libd3dshared.dylib"
+export DYLD_FALLBACK_LIBRARY_PATH="$ENGINE/lib:/usr/lib"
+
+# Agent 서명검증 fix: 버전 하위폴더에 서명된 exe 동기화
+BN="$WINEPREFIX/drive_c/Program Files (x86)/Battle.net"
+if [[ -f "$BN/Battle.net.exe" ]]; then
+ for v in "$BN"/Battle.net.[0-9]*; do
+ [[ -d "$v" ]] && cp -cf "$BN/Battle.net.exe" "$v/Battle.net.exe" 2>/dev/null || true
+ done
+fi
+
+MODE="${1:-battlenet}"
+case "$MODE" in
+ battlenet) # 배틀넷 런처 (로그인 → Play로 온라인 플레이)
+ exec "$ENGINE/bin/wine" \
+ "C:\\Program Files (x86)\\Battle.net\\Battle.net Launcher.exe" \
+ --disable-gpu-compositing
+ ;;
+ d2r) # 게임 직접 실행 (오프라인/이전 세션)
+ cd "$WINEPREFIX/drive_c/Program Files (x86)/Diablo II Resurrected"
+ exec "$ENGINE/bin/wine" "D2R.exe" "${@:2}"
+ ;;
+ kill) # 전부 종료
+ "$ENGINE/bin/wineserver" -k 2>/dev/null || true
+ ;;
+ *) echo "usage: play.sh [battlenet|d2r|kill]"; exit 1;;
+esac
diff --git a/scripts/setup-bottle.sh b/scripts/setup-bottle.sh
new file mode 100755
index 00000000000..852f9763e70
--- /dev/null
+++ b/scripts/setup-bottle.sh
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+# 기존 CrossOver "Battle.net Desktop App" 보틀을 새 보틀로 완전 복제한다.
+# 게임 파일만 옮기면 CEF/Agent가 오작동 → 레지스트리(system/user/userdef)까지 통째 복제해야 정상.
+# APFS 클론(cp -c)이라 디스크 추가 사용 거의 없음.
+set -euo pipefail
+
+CX_BOTTLE="${CX_BOTTLE:-$HOME/Library/Application Support/CrossOver/Bottles/Battle.net Desktop App}"
+DEST="${DEST:?새 보틀 경로 DEST를 지정하세요 (예: ~/BattleNetBottle)}"
+
+if [[ ! -d "$CX_BOTTLE/drive_c" ]]; then
+ echo "CrossOver 보틀을 찾을 수 없음: $CX_BOTTLE" >&2
+ echo "게임이 설치된 CrossOver 보틀 경로를 CX_BOTTLE로 지정하세요." >&2
+ exit 1
+fi
+
+echo "==> 보틀 복제: $CX_BOTTLE -> $DEST"
+mkdir -p "$DEST"
+cp -Rc "$CX_BOTTLE/drive_c" "$DEST/"
+for f in system.reg user.reg userdef.reg; do
+ [[ -f "$CX_BOTTLE/$f" ]] && cp -c "$CX_BOTTLE/$f" "$DEST/"
+done
+[[ -d "$CX_BOTTLE/dosdevices" ]] && cp -Rc "$CX_BOTTLE/dosdevices" "$DEST/"
+
+echo "==> 완료. 실행:"
+echo " WINEPREFIX='$DEST' scripts/launch.sh"