Compare commits
37 Commits
Author | SHA1 | Date |
---|---|---|
|
1ee74cff44 | |
|
0565a4f22d | |
|
59ae39283e | |
|
34d57a5a9d | |
|
7eec12dd25 | |
|
2da5c7b0e8 | |
|
79d862ac75 | |
|
94d0f13c39 | |
|
f4288566aa | |
|
0c66e0dbd6 | |
|
a0c5bff895 | |
|
a1626c677b | |
|
a8a83bc019 | |
|
37c514523f | |
|
cf86832877 | |
|
6ccbd386c0 | |
|
9ad74bd826 | |
|
9dbf9cc481 | |
|
e39db135ad | |
|
e6642499b0 | |
|
163e9ffeac | |
|
752f8cc0cd | |
|
548404ab26 | |
|
6b47878b82 | |
|
68e178f315 | |
|
0e477e206e | |
|
39c06c92b0 | |
|
dfbf300168 | |
|
90e9d79082 | |
|
44a45e4a90 | |
|
d0737aeeee | |
|
55a4649067 | |
|
e24f707204 | |
|
e360e87fa1 | |
|
3d8de27422 | |
|
f312a6eb27 | |
|
bceb106fd6 |
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
name: Improvement
|
||||
about: Use this if you want to post improvements to efficiency of the app
|
||||
title: ''
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
[State your improvements here]
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
name: 'Question '
|
||||
about: Select this for general doubts from the author.
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
name: Security issue
|
||||
about: 'Choose this if you have found a security issue. '
|
||||
title: "[SECURITY ISSUE]"
|
||||
labels: help wanted
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
[your content here]
|
|
@ -0,0 +1,3 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="winehq-installer-gui" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,10 @@
|
|||
- Abort when 32-bit fails
|
||||
- Add Fedora support
|
||||
- Add Debain Support
|
||||
- Improve Efficiency
|
||||
- Add flags to uninstall, reinstall, repair
|
||||
- Add flags to list a distrubution, and list help
|
||||
-GUI version (Released 5.0)
|
||||
-Build wine and install
|
||||
- Autopass with gpg encryption, can be turned on or off
|
||||
- Revert to the regular wine
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="MaterialThemeProjectNewConfig">
|
||||
<option name="metadata">
|
||||
<MTProjectMetadataState>
|
||||
<option name="migrated" value="true" />
|
||||
<option name="pristineConfig" value="false" />
|
||||
<option name="userId" value="-251beab5:185f73d2107:-8000" />
|
||||
<option name="version" value="8.13.2" />
|
||||
</MTProjectMetadataState>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/winehq-installer-gui/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/winehq-installer.iml" filepath="$PROJECT_DIR$/.idea/winehq-installer.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
|
@ -0,0 +1,128 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
mithicalaviator85@gmail.com.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
|
@ -0,0 +1 @@
|
|||
When contributing, code will be scanned and checked for any bugs/errors
|
|
@ -0,0 +1,277 @@
|
|||
Eclipse Public License - v 2.0
|
||||
|
||||
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
|
||||
PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
|
||||
OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
||||
|
||||
1. DEFINITIONS
|
||||
|
||||
"Contribution" means:
|
||||
|
||||
a) in the case of the initial Contributor, the initial content
|
||||
Distributed under this Agreement, and
|
||||
|
||||
b) in the case of each subsequent Contributor:
|
||||
i) changes to the Program, and
|
||||
ii) additions to the Program;
|
||||
where such changes and/or additions to the Program originate from
|
||||
and are Distributed by that particular Contributor. A Contribution
|
||||
"originates" from a Contributor if it was added to the Program by
|
||||
such Contributor itself or anyone acting on such Contributor's behalf.
|
||||
Contributions do not include changes or additions to the Program that
|
||||
are not Modified Works.
|
||||
|
||||
"Contributor" means any person or entity that Distributes the Program.
|
||||
|
||||
"Licensed Patents" mean patent claims licensable by a Contributor which
|
||||
are necessarily infringed by the use or sale of its Contribution alone
|
||||
or when combined with the Program.
|
||||
|
||||
"Program" means the Contributions Distributed in accordance with this
|
||||
Agreement.
|
||||
|
||||
"Recipient" means anyone who receives the Program under this Agreement
|
||||
or any Secondary License (as applicable), including Contributors.
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source Code or other
|
||||
form, that is based on (or derived from) the Program and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship.
|
||||
|
||||
"Modified Works" shall mean any work in Source Code or other form that
|
||||
results from an addition to, deletion from, or modification of the
|
||||
contents of the Program, including, for purposes of clarity any new file
|
||||
in Source Code form that contains any contents of the Program. Modified
|
||||
Works shall not include works that contain only declarations,
|
||||
interfaces, types, classes, structures, or files of the Program solely
|
||||
in each case in order to link to, bind by name, or subclass the Program
|
||||
or Modified Works thereof.
|
||||
|
||||
"Distribute" means the acts of a) distributing or b) making available
|
||||
in any manner that enables the transfer of a copy.
|
||||
|
||||
"Source Code" means the form of a Program preferred for making
|
||||
modifications, including but not limited to software source code,
|
||||
documentation source, and configuration files.
|
||||
|
||||
"Secondary License" means either the GNU General Public License,
|
||||
Version 2.0, or any later versions of that license, including any
|
||||
exceptions or additional permissions as identified by the initial
|
||||
Contributor.
|
||||
|
||||
2. GRANT OF RIGHTS
|
||||
|
||||
a) Subject to the terms of this Agreement, each Contributor hereby
|
||||
grants Recipient a non-exclusive, worldwide, royalty-free copyright
|
||||
license to reproduce, prepare Derivative Works of, publicly display,
|
||||
publicly perform, Distribute and sublicense the Contribution of such
|
||||
Contributor, if any, and such Derivative Works.
|
||||
|
||||
b) Subject to the terms of this Agreement, each Contributor hereby
|
||||
grants Recipient a non-exclusive, worldwide, royalty-free patent
|
||||
license under Licensed Patents to make, use, sell, offer to sell,
|
||||
import and otherwise transfer the Contribution of such Contributor,
|
||||
if any, in Source Code or other form. This patent license shall
|
||||
apply to the combination of the Contribution and the Program if, at
|
||||
the time the Contribution is added by the Contributor, such addition
|
||||
of the Contribution causes such combination to be covered by the
|
||||
Licensed Patents. The patent license shall not apply to any other
|
||||
combinations which include the Contribution. No hardware per se is
|
||||
licensed hereunder.
|
||||
|
||||
c) Recipient understands that although each Contributor grants the
|
||||
licenses to its Contributions set forth herein, no assurances are
|
||||
provided by any Contributor that the Program does not infringe the
|
||||
patent or other intellectual property rights of any other entity.
|
||||
Each Contributor disclaims any liability to Recipient for claims
|
||||
brought by any other entity based on infringement of intellectual
|
||||
property rights or otherwise. As a condition to exercising the
|
||||
rights and licenses granted hereunder, each Recipient hereby
|
||||
assumes sole responsibility to secure any other intellectual
|
||||
property rights needed, if any. For example, if a third party
|
||||
patent license is required to allow Recipient to Distribute the
|
||||
Program, it is Recipient's responsibility to acquire that license
|
||||
before distributing the Program.
|
||||
|
||||
d) Each Contributor represents that to its knowledge it has
|
||||
sufficient copyright rights in its Contribution, if any, to grant
|
||||
the copyright license set forth in this Agreement.
|
||||
|
||||
e) Notwithstanding the terms of any Secondary License, no
|
||||
Contributor makes additional grants to any Recipient (other than
|
||||
those set forth in this Agreement) as a result of such Recipient's
|
||||
receipt of the Program under the terms of a Secondary License
|
||||
(if permitted under the terms of Section 3).
|
||||
|
||||
3. REQUIREMENTS
|
||||
|
||||
3.1 If a Contributor Distributes the Program in any form, then:
|
||||
|
||||
a) the Program must also be made available as Source Code, in
|
||||
accordance with section 3.2, and the Contributor must accompany
|
||||
the Program with a statement that the Source Code for the Program
|
||||
is available under this Agreement, and informs Recipients how to
|
||||
obtain it in a reasonable manner on or through a medium customarily
|
||||
used for software exchange; and
|
||||
|
||||
b) the Contributor may Distribute the Program under a license
|
||||
different than this Agreement, provided that such license:
|
||||
i) effectively disclaims on behalf of all other Contributors all
|
||||
warranties and conditions, express and implied, including
|
||||
warranties or conditions of title and non-infringement, and
|
||||
implied warranties or conditions of merchantability and fitness
|
||||
for a particular purpose;
|
||||
|
||||
ii) effectively excludes on behalf of all other Contributors all
|
||||
liability for damages, including direct, indirect, special,
|
||||
incidental and consequential damages, such as lost profits;
|
||||
|
||||
iii) does not attempt to limit or alter the recipients' rights
|
||||
in the Source Code under section 3.2; and
|
||||
|
||||
iv) requires any subsequent distribution of the Program by any
|
||||
party to be under a license that satisfies the requirements
|
||||
of this section 3.
|
||||
|
||||
3.2 When the Program is Distributed as Source Code:
|
||||
|
||||
a) it must be made available under this Agreement, or if the
|
||||
Program (i) is combined with other material in a separate file or
|
||||
files made available under a Secondary License, and (ii) the initial
|
||||
Contributor attached to the Source Code the notice described in
|
||||
Exhibit A of this Agreement, then the Program may be made available
|
||||
under the terms of such Secondary Licenses, and
|
||||
|
||||
b) a copy of this Agreement must be included with each copy of
|
||||
the Program.
|
||||
|
||||
3.3 Contributors may not remove or alter any copyright, patent,
|
||||
trademark, attribution notices, disclaimers of warranty, or limitations
|
||||
of liability ("notices") contained within the Program from any copy of
|
||||
the Program which they Distribute, provided that Contributors may add
|
||||
their own appropriate notices.
|
||||
|
||||
4. COMMERCIAL DISTRIBUTION
|
||||
|
||||
Commercial distributors of software may accept certain responsibilities
|
||||
with respect to end users, business partners and the like. While this
|
||||
license is intended to facilitate the commercial use of the Program,
|
||||
the Contributor who includes the Program in a commercial product
|
||||
offering should do so in a manner which does not create potential
|
||||
liability for other Contributors. Therefore, if a Contributor includes
|
||||
the Program in a commercial product offering, such Contributor
|
||||
("Commercial Contributor") hereby agrees to defend and indemnify every
|
||||
other Contributor ("Indemnified Contributor") against any losses,
|
||||
damages and costs (collectively "Losses") arising from claims, lawsuits
|
||||
and other legal actions brought by a third party against the Indemnified
|
||||
Contributor to the extent caused by the acts or omissions of such
|
||||
Commercial Contributor in connection with its distribution of the Program
|
||||
in a commercial product offering. The obligations in this section do not
|
||||
apply to any claims or Losses relating to any actual or alleged
|
||||
intellectual property infringement. In order to qualify, an Indemnified
|
||||
Contributor must: a) promptly notify the Commercial Contributor in
|
||||
writing of such claim, and b) allow the Commercial Contributor to control,
|
||||
and cooperate with the Commercial Contributor in, the defense and any
|
||||
related settlement negotiations. The Indemnified Contributor may
|
||||
participate in any such claim at its own expense.
|
||||
|
||||
For example, a Contributor might include the Program in a commercial
|
||||
product offering, Product X. That Contributor is then a Commercial
|
||||
Contributor. If that Commercial Contributor then makes performance
|
||||
claims, or offers warranties related to Product X, those performance
|
||||
claims and warranties are such Commercial Contributor's responsibility
|
||||
alone. Under this section, the Commercial Contributor would have to
|
||||
defend claims against the other Contributors related to those performance
|
||||
claims and warranties, and if a court requires any other Contributor to
|
||||
pay any damages as a result, the Commercial Contributor must pay
|
||||
those damages.
|
||||
|
||||
5. NO WARRANTY
|
||||
|
||||
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
|
||||
PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS"
|
||||
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
|
||||
IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
|
||||
TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
|
||||
PURPOSE. Each Recipient is solely responsible for determining the
|
||||
appropriateness of using and distributing the Program and assumes all
|
||||
risks associated with its exercise of rights under this Agreement,
|
||||
including but not limited to the risks and costs of program errors,
|
||||
compliance with applicable laws, damage to or loss of data, programs
|
||||
or equipment, and unavailability or interruption of operations.
|
||||
|
||||
6. DISCLAIMER OF LIABILITY
|
||||
|
||||
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
|
||||
PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
|
||||
SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
|
||||
PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
|
||||
EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
7. GENERAL
|
||||
|
||||
If any provision of this Agreement is invalid or unenforceable under
|
||||
applicable law, it shall not affect the validity or enforceability of
|
||||
the remainder of the terms of this Agreement, and without further
|
||||
action by the parties hereto, such provision shall be reformed to the
|
||||
minimum extent necessary to make such provision valid and enforceable.
|
||||
|
||||
If Recipient institutes patent litigation against any entity
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that the
|
||||
Program itself (excluding combinations of the Program with other software
|
||||
or hardware) infringes such Recipient's patent(s), then such Recipient's
|
||||
rights granted under Section 2(b) shall terminate as of the date such
|
||||
litigation is filed.
|
||||
|
||||
All Recipient's rights under this Agreement shall terminate if it
|
||||
fails to comply with any of the material terms or conditions of this
|
||||
Agreement and does not cure such failure in a reasonable period of
|
||||
time after becoming aware of such noncompliance. If all Recipient's
|
||||
rights under this Agreement terminate, Recipient agrees to cease use
|
||||
and distribution of the Program as soon as reasonably practicable.
|
||||
However, Recipient's obligations under this Agreement and any licenses
|
||||
granted by Recipient relating to the Program shall continue and survive.
|
||||
|
||||
Everyone is permitted to copy and distribute copies of this Agreement,
|
||||
but in order to avoid inconsistency the Agreement is copyrighted and
|
||||
may only be modified in the following manner. The Agreement Steward
|
||||
reserves the right to publish new versions (including revisions) of
|
||||
this Agreement from time to time. No one other than the Agreement
|
||||
Steward has the right to modify this Agreement. The Eclipse Foundation
|
||||
is the initial Agreement Steward. The Eclipse Foundation may assign the
|
||||
responsibility to serve as the Agreement Steward to a suitable separate
|
||||
entity. Each new version of the Agreement will be given a distinguishing
|
||||
version number. The Program (including Contributions) may always be
|
||||
Distributed subject to the version of the Agreement under which it was
|
||||
received. In addition, after a new version of the Agreement is published,
|
||||
Contributor may elect to Distribute the Program (including its
|
||||
Contributions) under the new version.
|
||||
|
||||
Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
|
||||
receives no rights or licenses to the intellectual property of any
|
||||
Contributor under this Agreement, whether expressly, by implication,
|
||||
estoppel or otherwise. All rights in the Program not expressly granted
|
||||
under this Agreement are reserved. Nothing in this Agreement is intended
|
||||
to be enforceable by any entity that is not a Contributor or Recipient.
|
||||
No third-party beneficiary rights are created under this Agreement.
|
||||
|
||||
Exhibit A - Form of Secondary Licenses Notice
|
||||
|
||||
"This Source Code may also be made available under the following
|
||||
Secondary Licenses when the conditions for such availability set forth
|
||||
in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
|
||||
version(s), and exceptions or additional permissions here}."
|
||||
|
||||
Simply including a copy of this Agreement, including this Exhibit A
|
||||
is not sufficient to license the Source Code under Secondary Licenses.
|
||||
|
||||
If it is not possible or desirable to put the notice in a particular
|
||||
file, then You may include the notice in a location (such as a LICENSE
|
||||
file in a relevant directory) where a recipient would be likely to
|
||||
look for such a notice.
|
||||
|
||||
You may add additional accurate notices of copyright ownership.
|
35
README.md
35
README.md
|
@ -1,24 +1,21 @@
|
|||
# get-wine-latest.sh
|
||||
If you get a `permission denied` on any script present in this repository, even with `sudo`, run `sudo. chmod +x *.sh`
|
||||
# Wine Installer(Orignally as winehq_installer)
|
||||
|
||||
If you get a `permission denied` on any script present in this repository, even with `sudo`, run `sudo. chmod +x *.sh`, open a bug request.
|
||||
|
||||
(The READEME.md is not a file to be executed)
|
||||
|
||||
a simple set of shell scripts to Install\Remove the latest version of wine from winehq's official repositories without any error.
|
||||
a simple set of shell scripts to Install\Remove the latest version of wine from winehq's official repositories without
|
||||
any error.
|
||||
|
||||
To install wine, Simply copy this:
|
||||
|
||||
Ubuntu 22.04:
|
||||
```
|
||||
sudo apt install wget
|
||||
wget https://raw.githubusercontent.com/RishonDev/get-wine-latest.sh/main/get-wine-7.10-ubuntu_22_04.sh
|
||||
chmod +x get-wine-7.10-ubuntu_22_04.sh
|
||||
./get-wine-7.10-ubuntu_22_04.sh
|
||||
```
|
||||
Ubuntu 20.04:
|
||||
```
|
||||
sudo apt install wget
|
||||
wget https://raw.githubusercontent.com/RishonDev/get-wine-latest.sh/main/get-wine-7.10-ubuntu_20_04.sh
|
||||
chmod +x get-wine-7.10-ubuntu_20_04.sh
|
||||
./get-wine-7.10-ubuntu_20_04.sh
|
||||
```
|
||||
|
||||
I won't be adding support for 21.10 since it's reaching it's end of life. i won't be adding for 18.04 xenial as well since it doesn't have the rquired pakages in it's repositories to make wine function properly.
|
||||
Ubuntu:
|
||||
|
||||
```
|
||||
sudo apt install git
|
||||
git clone https://github.com/RishonDev/winehq-installer.git
|
||||
cd winehq-installer
|
||||
chmod +x *.sh
|
||||
./winehq_installer.sh -r
|
||||
./winehq_installer.sh
|
||||
```
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
Hi! Thank you for choosing winehq-installer as a way to automate many wine-related processes.
|
||||
This is all the information You need to know about this application. Not to be confused with "README.md" as that file is for display in github.
|
||||
|
||||
winehq-installer.sh -> The main app. This detects your distro and installs,updates, upgrades accordingly.
|
||||
|
||||
Common Errors:
|
||||
"ERROR: Unable to enable 32-bit support." -> dpkg has failed to enable 32 bit support for installing packages,
|
||||
Any bugs found in the script report to "https://github.com/RishonDev/winehq-installer/issues" immediately(This requires a github account) Under Issues > New issue.
|
||||
Any questions can be asked in the same way.
|
|
@ -0,0 +1,22 @@
|
|||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Use this section to tell people about which versions of your project are
|
||||
currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 6.x | Yet to be released |
|
||||
| 5.0.x | Yet to be released |
|
||||
| 4.x | :white_check_mark: |
|
||||
| 3.x | :white_check_mark: |
|
||||
| < 2.0 | :x: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Use this section to tell people how to report a vulnerability.
|
||||
|
||||
Tell them where to go, how often they can expect to get an update on a
|
||||
reported vulnerability, what to expect if the vulnerability is accepted or
|
||||
declined, etc.
|
|
@ -0,0 +1,4 @@
|
|||
#Add password setup here
|
||||
while getopts ":a:bc:" flag;do
|
||||
echo "flag -$flag, Argument $OPTARG";
|
||||
done
|
|
@ -0,0 +1,108 @@
|
|||
log_path =""
|
||||
while true; do
|
||||
case "$1" in
|
||||
-v | --verion ) VERBOSE=true; shift ;;
|
||||
-l | --log ) DEBUG=true; shift ;;
|
||||
-m | --memory ) MEMORY="$2"; shift 2 ;;
|
||||
--debugfile ) DEBUGFILE="$2"; shift 2 ;;
|
||||
-- ) shift; break ;;
|
||||
* ) break ;;
|
||||
esac
|
||||
done
|
||||
|
||||
RELEASE=$(lsb_release -sr)
|
||||
spin()
|
||||
{
|
||||
spinner="/|\\-/|\\-"
|
||||
while :
|
||||
do
|
||||
for i in `seq 0 7`
|
||||
do
|
||||
echo -n "${spinner:$i:1}"
|
||||
echo -en "\010"
|
||||
sleep 0.1
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
#Creates Logs
|
||||
mkdir ./logs
|
||||
touch ./logs/repoLog.txt
|
||||
touch ./logs/repoLog2.txt
|
||||
touch ./logs/installLog.txt
|
||||
touch ./logs/configLog.txt
|
||||
echo "Enabling 32-bit support... "
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
sudo dpkg --add-architecture i386 || { echo 'ERROR: Unable to enable 32-bit support.' ; exit 1; }
|
||||
kill -9 $SPIN_PID
|
||||
|
||||
|
||||
echo "Adding the repositories... "
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
#Insert interactive shell here
|
||||
sudo add-apt-repository universe -y &>> ./logs/repoLog2.txt
|
||||
{
|
||||
if [ "$RELEASE" = "20.04" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
|
||||
sudo apt update
|
||||
fi
|
||||
|
||||
if [ "$RELEASE" = "22.04" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
|
||||
sudo apt update
|
||||
fi
|
||||
|
||||
|
||||
if [ "$RELEASE" = "23.04" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources
|
||||
sudo apt update
|
||||
fi
|
||||
if [ "$RELEASE" = "23.10" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/mantic/winehq-mantic.sources
|
||||
sudo apt update
|
||||
fi
|
||||
if [ "$RELEASE" = "24.04" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/mantic/winehq-mantic.sources
|
||||
sudo apt update
|
||||
|
||||
else
|
||||
echo "Unsupported release"
|
||||
fi
|
||||
sudo mkdir -pm755 /etc/apt/keyrings
|
||||
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
|
||||
sudo apt update
|
||||
} &> ./logs/repoLog.txt
|
||||
kill -9 $SPIN_PID
|
||||
clear
|
||||
echo "1)Stable build (Recommended)"
|
||||
echo "2)Development build (Recommended for testing use only)"
|
||||
echo "3)Staging build (Recommended for testing use only)"
|
||||
read -p "Select build channel:" build -n 1 -r
|
||||
|
||||
if [ "$build" = "1" ]
|
||||
build = "stable"
|
||||
fi
|
||||
if ["$build" = "2"]
|
||||
build = "devel"
|
||||
fi
|
||||
if ["$build" = "3"]
|
||||
build = "staging"
|
||||
fi
|
||||
read -p "Ready? [Y/n]: " -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
echo
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
sudo apt install winehq-"$build" winetricks &> ./logs/installLog.txt || {echo "ERROR: dpkg locked" && exit 1}
|
||||
winecfg &> ./logs/configLog.txt
|
||||
else
|
||||
echo
|
||||
echo "Abort."
|
||||
fi
|
||||
echo "The logs can be found at" $(pwd)"/logs/"
|
|
@ -0,0 +1,95 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Get the release version
|
||||
RELEASE=$(lsb_release -sr)
|
||||
|
||||
# Parse command-line options
|
||||
while getopts ":v:" opt; do
|
||||
case $opt in
|
||||
v)
|
||||
echo "4.0.0"
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
echo "-v Displays the version"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Spinner function for progress indication
|
||||
spin() {
|
||||
spinner="/|\\-/|\\-"
|
||||
while :; do
|
||||
for i in $(seq 0 7); do
|
||||
echo -n "${spinner:$i:1}"
|
||||
echo -en "\010"
|
||||
sleep 0.1
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
# Create logs directory and log files
|
||||
mkdir -p ./logs
|
||||
touch ./logs/repoLog.txt ./logs/repoLog2.txt ./logs/installLog.txt ./logs/configLog.txt
|
||||
|
||||
# Enable 32-bit support
|
||||
echo "Enabling 32-bit support..."
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" $(seq 0 15)
|
||||
sudo dpkg --add-architecture i386 || {
|
||||
echo 'ERROR: Unable to enable 32-bit support.'
|
||||
exit 1
|
||||
}
|
||||
kill -9 $SPIN_PID
|
||||
|
||||
# Add the appropriate repository based on release version
|
||||
echo "Adding the repositories..."
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" $(seq 0 15)
|
||||
{
|
||||
if [ "$RELEASE" = "41" ]; then
|
||||
sudo dnf5 config-manager addrepo --from-repofile=https://dl.winehq.org/wine-builds/fedora/41/winehq.repo
|
||||
sudo dnf update
|
||||
elif [ "$RELEASE" = "40" ]; then
|
||||
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/40/winehq.repo
|
||||
sudo apt update
|
||||
fi
|
||||
} &> ./logs/repoLog.txt || true
|
||||
kill -9 $SPIN_PID
|
||||
|
||||
clear
|
||||
|
||||
# Prompt user to select build type
|
||||
echo "1) Stable build (Recommended)"
|
||||
echo "2) Development build (Recommended for testing use only)"
|
||||
echo "3) Staging build (Recommended for testing use only)"
|
||||
read -p "Select build channel: " build
|
||||
|
||||
case $build in
|
||||
1) build="stable" ;;
|
||||
2) build="devel" ;;
|
||||
3) build="staging" ;;
|
||||
*) echo "Invalid selection. Exiting."; exit 1 ;;
|
||||
esac
|
||||
|
||||
# Confirm before proceeding
|
||||
read -p "Ready? [Y/n]: " -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo "Installing WineHQ $build build..."
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" $(seq 0 15)
|
||||
sudo dnf install winehq-"$build" winetricks &> ./logs/installLog.txt
|
||||
winecfg &> ./logs/configLog.txt
|
||||
kill -9 $SPIN_PID
|
||||
else
|
||||
echo "Abort."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Display log directory path
|
||||
echo "The logs can be found at $(pwd)/logs/"
|
|
@ -0,0 +1,105 @@
|
|||
#!/bin/bash
|
||||
while getopts ":v:" opt; do
|
||||
case $opt in
|
||||
v)
|
||||
echo "5.0.0"
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
echo "-v Displays the version"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
RELEASE=$(lsb_release -sr)
|
||||
spin()
|
||||
{
|
||||
spinner="/|\\-/|\\-"
|
||||
while :
|
||||
do
|
||||
for i in `seq 0 7`
|
||||
do
|
||||
echo -n "${spinner:$i:1}"
|
||||
echo -en "\010"
|
||||
sleep 0.1
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
#Creates Logs
|
||||
mkdir ./logs
|
||||
touch ./logs/repoLog.txt
|
||||
touch ./logs/repoLog2.txt
|
||||
touch ./logs/installLog.txt
|
||||
touch ./logs/configLog.txt
|
||||
echo "Enabling 32-bit support... "
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
sudo dpkg --add-architecture i386
|
||||
kill -9 $SPIN_PID
|
||||
|
||||
|
||||
echo "Adding the repositories... "
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
|
||||
#Insert interactive shell here
|
||||
sudo add-apt-repository universe -y &>> ./logs/repoLog2.txt
|
||||
{
|
||||
if [ "$RELEASE" = "20.04" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
|
||||
sudo apt update
|
||||
fi
|
||||
|
||||
if [ "$RELEASE" = "22.04" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
|
||||
sudo apt update
|
||||
fi
|
||||
|
||||
if [ "$RELEASE" = "23.10" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/mantic/winehq-mantic.sources
|
||||
sudo apt update
|
||||
fi
|
||||
|
||||
if [ "$RELEASE" = "23.04" ]; then
|
||||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources
|
||||
sudo apt update
|
||||
else
|
||||
echo "Unsupported release"
|
||||
fi
|
||||
sudo mkdir -pm755 /etc/apt/keyrings
|
||||
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
|
||||
sudo apt update
|
||||
} &> ./logs/repoLog.txt
|
||||
kill -9 $SPIN_PID
|
||||
clear
|
||||
echo "1)Stable build (Recommended)"
|
||||
echo "2)Development build (Recommended for testing use only)"
|
||||
echo "3)Staging build (Recommended for testing use only)"
|
||||
read -p "Select build channel:" build -n 1 -r
|
||||
if ["$build" = "1"]
|
||||
build = "stable"
|
||||
fi
|
||||
if ["$build" = "2"]
|
||||
build = "devel"
|
||||
fi
|
||||
if ["$build" = "3"]
|
||||
build = "staging"
|
||||
fi
|
||||
read -p "Ready? [Y/n]: " -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
echo
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
sudo apt install winehq-"$build" winetricks &> ./logs/installLog.txt
|
||||
winecfg &> ./logs/configLog.txt
|
||||
else
|
||||
echo
|
||||
echo "Abort."
|
||||
fi
|
||||
echo "The logs can be found at" $(pwd)"/logs/"
|
|
@ -0,0 +1,23 @@
|
|||
echo "Backup Wine Cache?"
|
||||
read -p "Ready? [Y/n]: " -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
mv ~/.wine ~/.wine.bak
|
||||
fi
|
||||
|
||||
rm -r ~/.wine
|
||||
sudo apt-get purge wine
|
||||
|
||||
while getopts "vsdt" n
|
||||
do
|
||||
case "$n" in
|
||||
v) echo "1.0.0" ;;
|
||||
s) sudo apt-get purge winehq-stable
|
||||
sudo apt-get install winehq-devel;;
|
||||
d) sudo apt-get purge winehq-devel
|
||||
sudo apt-get install winehq-devel;;
|
||||
t) sudo apt-get purge winehq-devel
|
||||
sudo apt-get install winehq-devel;;
|
||||
\?) usage;;
|
||||
esac
|
||||
done
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
spin()
|
||||
{
|
||||
spinner="/|\\-/|\\-"
|
||||
while :
|
||||
do
|
||||
for i in `seq 0 7`
|
||||
do
|
||||
echo -n "${spinner:$i:1}"
|
||||
echo -en "\010"
|
||||
sleep 0.1
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
echo "Updating script..."
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
wget -r https://raw.githubusercontent.com/RishonDev/winehq-installer/main/core/
|
||||
wget -r https://raw.githubusercontent.com/RishonDev/winehq-installer/main/winehq-installer/
|
||||
|
||||
kill -9 $SPIN_PID
|
||||
echo "Done."
|
|
@ -0,0 +1,43 @@
|
|||
path=$(pwd)
|
||||
spin()
|
||||
{
|
||||
spinner="/|\\-/|\\-"
|
||||
while :
|
||||
do
|
||||
for i in `seq 0 7`
|
||||
do
|
||||
echo -n "${spinner:$i:1}"
|
||||
echo -en "\010"
|
||||
sleep 0.1
|
||||
done
|
||||
done
|
||||
}
|
||||
read -p "Are you sure to uninstall wine? [Y/n]: " -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
read -p "Backup wine cache? [Y/n]: " -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
mv ~/.wine ~/.wine.bak
|
||||
fi
|
||||
cd $HOME
|
||||
echo "Uninstalling Wine... "
|
||||
{
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
rm -r .wine
|
||||
rm .config/menus/applications-merged/wine*
|
||||
rm -r .local/share/applications/wine
|
||||
rm .local/share/desktop-directories/wine*
|
||||
rm .local/share/icons/????_*.xpm
|
||||
sudo apt purge --autoremove winehq-stable -y
|
||||
sudo apt-get update
|
||||
sudo apt-get autoclean -y
|
||||
sudo apt-get clean -y
|
||||
sudo apt-get autoremove -y
|
||||
} &> /dev/null
|
||||
|
||||
kill -9 $SPIN_PID
|
||||
cd $path || exit 1
|
||||
fi
|
|
@ -0,0 +1,102 @@
|
|||
#!/bin/bash
|
||||
spin()
|
||||
{
|
||||
spinner="/|\\-/|\\-"
|
||||
while :
|
||||
do
|
||||
for i in `seq 0 7`
|
||||
do
|
||||
echo -n "${spinner:$i:1}"
|
||||
echo -en "\010"
|
||||
sleep 0.1
|
||||
done
|
||||
done
|
||||
}
|
||||
#Insert interactive shell here
|
||||
echo "Updating Wine..."
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
{
|
||||
sudo apt update
|
||||
sudo apt upgrade alsa-topology-conf alsa-ucm-conf cabextract fuseiso \
|
||||
gstreamer1.0-plugins-base gstreamer1.0-plugins-base:i386 i965-va-driver \
|
||||
i965-va-driver:i386 intel-media-va-driver intel-media-va-driver:i386 libaom3:i386 libapparmor1:i386 \
|
||||
libasound2 libasound2:i386 libasound2-data libasound2-plugins libasound2-plugins:i386 libasyncns0 \
|
||||
libasyncns0:i386 libatomic1:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 \
|
||||
libavcodec59 libavcodec59:i386 libavutil57 libavutil57:i386 libbrotli1:i386 libbsd0:i386 libcairo-gobject2:i386 \
|
||||
libcairo2:i386 libcapi20-3 libcapi20-3:i386 libcdparanoia0 libcdparanoia0:i386 libcodec2-1.0 \
|
||||
libcodec2-1.0:i386 libcups2:i386 libcurl3-gnutls:i386 libcurl4:i386 libdatrie1:i386 libdav1d6:i386 \
|
||||
libdbus-1-3:i386 libdecor-0-0 libdecor-0-0:i386 libdecor-0-plugin-1-cairo libdecor-0-plugin-1-cairo:i386 libdeflate0:i386 \
|
||||
libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libdw1:i386 \
|
||||
libedit2:i386 libelf1:i386 libexif12:i386 libexpat1:i386 libffi8:i386 libflac8 libflac8:i386 \
|
||||
libfontconfig1:i386 libfreetype6:i386 libfribidi0:i386 libfuse2 libgbm1 libgbm1:i386 libgd3:i386 \
|
||||
libgdbm-compat4:i386 libgdbm6:i386 libgdk-pixbuf-2.0-0:i386 libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa \
|
||||
libglu1-mesa:i386 libglvnd0:i386 libgnutls30:i386 libgomp1:i386 libgphoto2-6:i386 libgphoto2-port12:i386 libgraphite2-3:i386 \
|
||||
libgsm1 libgsm1:i386 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 \
|
||||
libharfbuzz0b:i386 libhogweed6:i386 libicu71:i386 libieee1284-3:i386 libigdgmm12 libigdgmm12:i386 libjack-jackd2-0 \
|
||||
libjack-jackd2-0:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 liblcms2-2:i386 libldap-2.5-0:i386 \
|
||||
libllvm15:i386 libltdl7:i386 libmd0:i386 libmfx1 libmp3lame0 libmp3lame0:i386 libnettle8:i386 libnghttp2-14:i386 \
|
||||
libnspr4:i386 libnss3:i386 libnuma1:i386 libodbc1 libodbc1:i386 libodbc2 libodbc2:i386 libodbccr2 libodbccr2:i386 \
|
||||
libogg0 libogg0:i386 libopengl0 libopengl0:i386 libopenjp2-7:i386 libopus0 libopus0:i386 liborc-0.4-0 \
|
||||
liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 \
|
||||
libpangoft2-1.0-0:i386 libpcap0.8:i386 libpci3:i386 libpciaccess0:i386 libperl5.34:i386 libpixman-1-0:i386 \
|
||||
libpng16-16:i386 libpoppler-glib8:i386 libpoppler123:i386 libpsl5:i386 libpulse0 libpulse0:i386 librsvg2-2:i386 \
|
||||
librsvg2-common:i386 librtmp1:i386 libsamplerate0 libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules:i386 \
|
||||
libsasl2-modules-db:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 libsensors5:i386 libshine3 libshine3:i386 libsnappy1v5 libsnappy1v5:i386 \
|
||||
libsndfile1 libsndfile1:i386 libsnmp40:i386 libsoxr0 libsoxr0:i386 libspeex1 libspeex1:i386 libspeexdsp1 libspeexdsp1:i386 libsqlite3-0:i386 \
|
||||
libssh-4:i386 libstdc++6:i386 libsvtav1enc1 libsvtav1enc1:i386 libswresample4 libswresample4:i386 libtasn1-6:i386 libthai0:i386 libtheora0 \
|
||||
libtheora0:i386 libtiff5:i386 libtwolame0 libtwolame0:i386 libunwind8:i386 libusb-1.0-0:i386 libv4l-0 libv4l-0:i386 libv4lconvert0 libv4lconvert0:i386 \
|
||||
libva-drm2 libva-drm2:i386 libva-x11-2 libva-x11-2:i386 libva2 libva2:i386 libvdpau1 libvdpau1:i386 libvisual-0.4-0 libvisual-0.4-0:i386 libvorbis0a libvorbis0a:i386 libvorbisenc2 libvorbisenc2:i386 libvpx7 libvpx7:i386 \
|
||||
libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386 libwayland-server0 libwayland-server0:i386 libwebp7:i386 libwebpmux3:i386 \
|
||||
libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libx264-164 libx264-164:i386 libx265-199:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-present0:i386 libxcb-render0:i386 libxcb-shm0:i386 \
|
||||
libxcb-sync1:i386 libxcb-xfixes0:i386 libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdmcp6:i386 \
|
||||
libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxkbcommon0:i386 libxml2:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386 \
|
||||
libxshmfence1:i386 libxslt1.1:i386 libxss1 libxss1:i386 libxvidcore4 libxvidcore4:i386 libxxf86vm1:i386 libzvbi-common libzvbi0 libzvbi0:i386 \
|
||||
mesa-va-drivers mesa-va-drivers:i386 mesa-vdpau-drivers mesa-vdpau-drivers:i386 ocl-icd-libopencl1 ocl-icd-libopencl1:i386 p7zip p7zip-full unzip va-driver-all va-driver-all:i386 vdpau-driver-all vdpau-driver-all:i386 wine-stable wine-stable-amd64 wine-stable-i386:i386 gvfs \
|
||||
gvfs:i386 i965-va-driver-shaders i965-va-driver-shaders:i386 alsa-utils libcuda1 libnvcuvid1 libnvidia-encode1 libcuda1:i386 libnvcuvid1:i386 libnvidia-encode1:i386 cups-common:i386 \
|
||||
libgd-tools:i386 gdbm-l10n:i386 gnutls-bin:i386 gphoto2:i386 libvisual-0.4-plugins libvisual-0.4-plugins:i386 gstreamer1.0-tools:i386 jackd2 jackd2:i386 liblcms2-utils:i386 odbc-postgresql tdsodbc odbc-postgresql:i386 tdsodbc:i386 opus-tools opus-tools:i386 pulseaudio pulseaudio:i386 \
|
||||
librsvg2-bin:i386 hplip:i386 libsasl2-modules-gssapi-mit:i386 | libsasl2-modules-gssapi-heimdal:i386 libsasl2-modules-ldap:i386 libsasl2-modules-otp:i386 libsasl2-modules-sql:i386 lm-sensors:i386 \
|
||||
speex speex:i386 opencl-icd opencl-icd:i386 p7zip-rar zip libvdpau-va-gl1 libvdpau-va-gl1:i386 tor \
|
||||
unrar-free | unrar sane-airscan:i386 alsa-topology-conf alsa-ucm-conf \
|
||||
cabextract fuseiso gstreamer1.0-plugins-base gstreamer1.0-plugins-base:i386 i965-va-driver \
|
||||
i965-va-driver:i386 intel-media-va-driver intel-media-va-driver:i386 libaom3:i386 libapparmor1:i386 \
|
||||
libasound2 libasound2:i386 libasound2-data libasound2-plugins libasound2-plugins:i386 libasyncns0 libasyncns0:i386 libatomic1:i386 libavahi-client3:i386 libavahi-common-data:i386 \
|
||||
libavahi-common3:i386 libavcodec59 libavcodec59:i386 libavutil57 libavutil57:i386 libbrotli1:i386 libbsd0:i386 libcairo-gobject2:i386 libcairo2:i386 libcapi20-3 libcapi20-3:i386 \
|
||||
libcdparanoia0 libcdparanoia0:i386 libcodec2-1.0 libcodec2-1.0:i386 libcups2:i386 libcurl3-gnutls:i386 libcurl4:i386 libdatrie1:i386 \
|
||||
libdav1d6:i386 libdbus-1-3:i386 libdecor-0-0 libdecor-0-0:i386 \
|
||||
libdecor-0-plugin-1-cairo libdecor-0-plugin-1-cairo:i386 libdeflate0:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libdw1:i386 libedit2:i386 \
|
||||
libelf1:i386 libexif12:i386 libexpat1:i386 libffi8:i386 libflac8 libflac8:i386 \
|
||||
libfontconfig1:i386 libfreetype6:i386 libfribidi0:i386 libfuse2 libgbm1 libgbm1:i386 libgd3:i386 libgdbm-compat4:i386 libgdbm6:i386 libgdk-pixbuf-2.0-0:i386 libglapi-mesa:i386 \
|
||||
libglib2.0-0:i386 libglu1-mesa libglu1-mesa:i386 libglvnd0:i386 libgnutls30:i386 libgomp1:i386 libgphoto2-6:i386 libgphoto2-port12:i386 \
|
||||
libgraphite2-3:i386 libgsm1 libgsm1:i386 libgstreamer-plugins-base1.0-0 \
|
||||
libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libharfbuzz0b:i386 libhogweed6:i386 libicu71:i386 libieee1284-3:i386 libigdgmm12 libigdgmm12:i386 \
|
||||
libjack-jackd2-0 libjack-jackd2-0:i386 \
|
||||
libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 liblcms2-2:i386 libldap-2.5-0:i386 libllvm15:i386 libltdl7:i386 libmd0:i386 libmfx1 \
|
||||
libmp3lame0 libmp3lame0:i386 libnettle8:i386 libnghttp2-14:i386 libnspr4:i386 libnss3:i386 libnuma1:i386 libodbc1 libodbc1:i386 libodbc2 \
|
||||
libodbc2:i386 libodbccr2 libodbccr2:i386 libogg0 libogg0:i386 libopengl0 libopengl0:i386 libopenjp2-7:i386 libopus0 libopus0:i386 liborc-0.4-0 \
|
||||
liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 \
|
||||
libpcap0.8:i386 libpci3:i386 libpciaccess0:i386 libperl5.34:i386 libpixman-1-0:i386 libpng16-16:i386 libpoppler-glib8:i386 libpoppler123:i386 libpsl5:i386 libpulse0 \
|
||||
libpulse0:i386 librsvg2-2:i386 librsvg2-common:i386 librtmp1:i386 libsamplerate0 libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 \
|
||||
libsasl2-modules:i386 libsasl2-modules-db:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 libsensors5:i386 libshine3 libshine3:i386 libsnappy1v5 \
|
||||
libsnappy1v5:i386 libsndfile1 libsndfile1:i386 libsnmp40:i386 libsoxr0 libsoxr0:i386 libspeex1 libspeex1:i386 libspeexdsp1 libspeexdsp1:i386 libsqlite3-0:i386 \
|
||||
libssh-4:i386 libstdc++6:i386 \
|
||||
libsvtav1enc1 libsvtav1enc1:i386 libswresample4 libswresample4:i386 libtasn1-6:i386 \
|
||||
libthai0:i386 libtheora0 libtheora0:i386 libtiff5:i386 libtwolame0 libtwolame0:i386 libunwind8:i386 libusb-1.0-0:i386 \
|
||||
libv4l-0 libv4l-0:i386 libv4lconvert0 libv4lconvert0:i386 libva-drm2 libva-drm2:i386 libva-x11-2 \
|
||||
libva-x11-2:i386 libva2 libva2:i386 libvdpau1 libvdpau1:i386 libvisual-0.4-0 libvisual-0.4-0:i386 libvorbis0a libvorbis0a:i386 libvorbisenc2 \
|
||||
libvorbisenc2:i386 libvpx7 libvpx7:i386 libwayland-client0:i386 libwayland-cursor0:i386 \
|
||||
libwayland-egl1:i386 libwayland-server0 libwayland-server0:i386 libwebp7:i386 libwebpmux3:i386 \
|
||||
libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libx264-164 libx264-164:i386 libx265-199:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-present0:i386 \
|
||||
libxcb-render0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcb-xfixes0:i386 libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 \
|
||||
libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxkbcommon0:i386 libxml2:i386 \
|
||||
libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxslt1.1:i386 libxss1 libxss1:i386 \
|
||||
libxvidcore4 libxvidcore4:i386 libxxf86vm1:i386 libzvbi-common libzvbi0 libzvbi0:i386 mesa-va-drivers mesa-va-drivers:i386 mesa-vdpau-drivers \
|
||||
mesa-vdpau-drivers:i386 ocl-icd-libopencl1 ocl-icd-libopencl1:i386 p7zip p7zip-full unzip va-driver-all va-driver-all:i386 vdpau-driver-all \
|
||||
vdpau-driver-all:i386 wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable winetricks
|
||||
|
||||
sudo apt upgrade winehq-stable winetricks
|
||||
|
||||
} &> /dev/null
|
||||
kill -9 $SPIN_PID
|
||||
echo "Done."
|
|
@ -1,15 +0,0 @@
|
|||
echo "Setting up dependencies..."
|
||||
sudo dpkg --add-architecture i386
|
||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
|
||||
sudo mv winehq-focal.sources /etc/apt/sources.list.d/
|
||||
sudo apt update
|
||||
wget -nc https://dl.winehq.org/wine-builds/winehq.key
|
||||
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
|
||||
sudo apt update
|
||||
echo "\nInstalling wine 7.11 ...."
|
||||
sudo apt install winehq-stable winetricks
|
||||
|
||||
echo "\nSetting up wine..."
|
||||
winecfg
|
||||
echo "\nDone!"
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
echo "Setting up dependencies..."
|
||||
sudo add-apt-repository universe
|
||||
sudo dpkg --add-architecture i386
|
||||
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
|
||||
sudo mv winehq-jammy.sources /etc/apt/sources.list.d/
|
||||
sudo apt update
|
||||
wget -nc https://dl.winehq.org/wine-builds/winehq.key
|
||||
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
|
||||
sudo apt update
|
||||
echo "Installing wine 7.10 ...."
|
||||
sudo apt install winehq-stable winetricks
|
||||
|
||||
echo "Setting up wine..."
|
||||
winecfg
|
||||
echo "Done!"
|
||||
|
|
@ -0,0 +1 @@
|
|||
echo "GUI releasing soon in 5.0 update"
|
|
@ -1,11 +0,0 @@
|
|||
cd $HOME
|
||||
rm -r .wine
|
||||
rm .config/menus/applications-merged/wine*
|
||||
rm -r .local/share/applications/wine
|
||||
rm .local/share/desktop-directories/wine*
|
||||
rm .local/share/icons/????_*.xpm
|
||||
sudo apt purge winehq-stable && sudo apt autoremove
|
||||
sudo apt-get update
|
||||
sudo apt-get autoclean
|
||||
sudo apt-get clean
|
||||
sudo apt-get autoremove
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.example</groupId>
|
||||
<artifactId>winehq-installer-gui</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
|
||||
</project>
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/bash
|
||||
version="4.0"
|
||||
flags=""
|
||||
OS=$(lsb_release -is)
|
||||
printversion(){
|
||||
echo "WineHQ installer version $version"
|
||||
echo "Wine "
|
||||
}
|
||||
ubuntu(){
|
||||
./core/winhq-installer-ubuntu.sh
|
||||
}
|
||||
debian(){
|
||||
./core/winhq-installer-debain.sh
|
||||
}
|
||||
fedora(){
|
||||
./core/winhq-installer-fedora.sh
|
||||
}
|
||||
print_usage() {
|
||||
echo "Options:"
|
||||
echo "--ubuntu | -u Enters the Ubuntu installer of wine"
|
||||
echo "-fedora Enters the Fedora installer of wine"
|
||||
echo "-debian | -d Enters the Debian installer of wine"
|
||||
echo "-version | -v Prints app information"
|
||||
echo "-upgrade | -u Upgrades your Wine. Ubuntu updates may be applied for the smooth experience for wine."
|
||||
echo "-verbose | Displays all the logs on screen."
|
||||
echo "-silent Finishes All the processes with no output. Useful for using it in the background.."
|
||||
echo "-log Adds debug logs to process any errors."
|
||||
|
||||
}
|
||||
while true; do
|
||||
case "$1" in
|
||||
--verbose ) VERBOSE=true; shift ;;
|
||||
-u |--ubuntu ) DEBUG=true; shift ;;
|
||||
-fedora ) MEMORY="$2"; shift 2 ;;
|
||||
--debugfile ) DEBUGFILE="$2"; shift 2 ;;
|
||||
--minheap )
|
||||
JAVA_MISC_OPT="$JAVA_MISC_OPT -XX:MinHeapFreeRatio=$2"; shift 2 ;;
|
||||
--maxheap )
|
||||
JAVA_MISC_OPT="$JAVA_MISC_OPT -XX:MaxHeapFreeRatio=$2"; shift 2 ;;
|
||||
-- ) shift; break ;;
|
||||
* ) break ;;
|
||||
esac
|
||||
done
|
||||
while getopts 'udfv:ve' flag; do
|
||||
case "${flag}" in
|
||||
u) ubuntu ;;
|
||||
fedora) fedora ;;
|
||||
debian) debian ;;
|
||||
ve) printversion ;;
|
||||
verbose) flags="$flags -v" ;;
|
||||
*) print_usage
|
||||
exit 1 ;;
|
||||
esac
|
||||
done
|
||||
echo
|
Loading…
Reference in New Issue