Compare commits
No commits in common. "main" and "v2.3.0" have entirely different histories.
|
@ -1,38 +0,0 @@
|
||||||
---
|
|
||||||
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.
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
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.
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
name: Improvement
|
|
||||||
about: Use this if you want to post improvements to efficiency of the app
|
|
||||||
title: ''
|
|
||||||
labels: enhancement
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
[State your improvements here]
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
name: 'Question '
|
|
||||||
about: Select this for general doubts from the author.
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
name: Security issue
|
|
||||||
about: 'Choose this if you have found a security issue. '
|
|
||||||
title: "[SECURITY ISSUE]"
|
|
||||||
labels: help wanted
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
[your content here]
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
|
@ -1,13 +0,0 @@
|
||||||
<?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>
|
|
|
@ -1,10 +0,0 @@
|
||||||
- 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
|
|
|
@ -1,20 +0,0 @@
|
||||||
<?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>
|
|
|
@ -1,13 +0,0 @@
|
||||||
<?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>
|
|
|
@ -1,14 +0,0 @@
|
||||||
<?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>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?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>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?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>
|
|
|
@ -1,128 +0,0 @@
|
||||||
# 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.
|
|
|
@ -1 +0,0 @@
|
||||||
When contributing, code will be scanned and checked for any bugs/errors
|
|
277
LICENSE
277
LICENSE
|
@ -1,277 +0,0 @@
|
||||||
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.
|
|
21
README.md
21
README.md
|
@ -1,21 +1,16 @@
|
||||||
# Wine Installer(Orignally as winehq_installer)
|
# 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`
|
||||||
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)
|
(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
|
a simple set of shell scripts to Install\Remove the latest version of wine from winehq's official repositories without any error.
|
||||||
any error.
|
|
||||||
|
|
||||||
To install wine, Simply copy this:
|
To install wine, Simply copy this:
|
||||||
|
|
||||||
Ubuntu:
|
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
|
|
||||||
```
|
```
|
||||||
|
sudo apt install wget
|
||||||
|
wget https://raw.githubusercontent.com/RishonDev/get-wine-latest.sh/main/wine-installer-ubuntu.sh
|
||||||
|
chmod +x wine-installer-ubuntu.sh
|
||||||
|
./wine-installer-ubuntu.sh
|
||||||
|
```
|
|
@ -1,9 +0,0 @@
|
||||||
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.
|
|
22
SECURITY.md
22
SECURITY.md
|
@ -1,22 +0,0 @@
|
||||||
# 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.
|
|
|
@ -1,4 +0,0 @@
|
||||||
#Add password setup here
|
|
||||||
while getopts ":a:bc:" flag;do
|
|
||||||
echo "flag -$flag, Argument $OPTARG";
|
|
||||||
done
|
|
|
@ -1,108 +0,0 @@
|
||||||
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/"
|
|
|
@ -1,95 +0,0 @@
|
||||||
#!/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/"
|
|
|
@ -1,23 +0,0 @@
|
||||||
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
|
|
|
@ -1,43 +0,0 @@
|
||||||
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
|
|
|
@ -1 +0,0 @@
|
||||||
echo "GUI releasing soon in 5.0 update"
|
|
|
@ -2,7 +2,7 @@
|
||||||
while getopts ":v:" opt; do
|
while getopts ":v:" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
v)
|
v)
|
||||||
echo "5.0.0"
|
echo "2.1.0"
|
||||||
;;
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
|
@ -45,8 +45,6 @@ echo "Adding the repositories... "
|
||||||
spin &
|
spin &
|
||||||
SPIN_PID=$!
|
SPIN_PID=$!
|
||||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||||
|
|
||||||
#Insert interactive shell here
|
|
||||||
sudo add-apt-repository universe -y &>> ./logs/repoLog2.txt
|
sudo add-apt-repository universe -y &>> ./logs/repoLog2.txt
|
||||||
{
|
{
|
||||||
if [ "$RELEASE" = "20.04" ]; then
|
if [ "$RELEASE" = "20.04" ]; then
|
||||||
|
@ -59,12 +57,7 @@ if [ "$RELEASE" = "22.04" ]; then
|
||||||
sudo apt update
|
sudo apt update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$RELEASE" = "23.10" ]; then
|
if [ "$RELEASE" = "23.4" ]; 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 wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources
|
||||||
sudo apt update
|
sudo apt update
|
||||||
else
|
else
|
||||||
|
@ -75,31 +68,18 @@ fi
|
||||||
sudo apt update
|
sudo apt update
|
||||||
} &> ./logs/repoLog.txt
|
} &> ./logs/repoLog.txt
|
||||||
kill -9 $SPIN_PID
|
kill -9 $SPIN_PID
|
||||||
clear
|
|
||||||
echo "1)Stable build (Recommended)"
|
read -p "Install wine? [Y/n]: " -n 1 -r
|
||||||
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]$ ]]
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
spin &
|
spin &
|
||||||
SPIN_PID=$!
|
SPIN_PID=$!
|
||||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||||
sudo apt install winehq-"$build" winetricks &> ./logs/installLog.txt
|
sudo apt install winehq-stable winetricks &> ./logs/installLog.txt
|
||||||
winecfg &> ./logs/configLog.txt
|
winecfg &> ./logs/configLog.txt
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
echo "Abort."
|
echo "Abort."
|
||||||
fi
|
fi
|
||||||
echo "The logs can be found at" $(pwd)"/logs/"
|
echo "The logs can be found at" $(pwd)"/"
|
|
@ -17,8 +17,6 @@ echo "Updating script..."
|
||||||
spin &
|
spin &
|
||||||
SPIN_PID=$!
|
SPIN_PID=$!
|
||||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||||
wget -r https://raw.githubusercontent.com/RishonDev/winehq-installer/main/core/
|
wget https://raw.githubusercontent.com/RishonDev/get-wine-latest.sh/main/wine-installer-ubuntu.sh
|
||||||
wget -r https://raw.githubusercontent.com/RishonDev/winehq-installer/main/winehq-installer/
|
|
||||||
|
|
||||||
kill -9 $SPIN_PID
|
kill -9 $SPIN_PID
|
||||||
echo "Done."
|
echo "Done."
|
|
@ -0,0 +1,33 @@
|
||||||
|
spin()
|
||||||
|
{
|
||||||
|
spinner="/|\\-/|\\-"
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
for i in `seq 0 7`
|
||||||
|
do
|
||||||
|
echo -n "${spinner:$i:1}"
|
||||||
|
echo -en "\010"
|
||||||
|
sleep 0.1
|
||||||
|
done
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
|
@ -12,7 +12,6 @@ spin()
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
#Insert interactive shell here
|
|
||||||
echo "Updating Wine..."
|
echo "Updating Wine..."
|
||||||
spin &
|
spin &
|
||||||
SPIN_PID=$!
|
SPIN_PID=$!
|
|
@ -1,12 +0,0 @@
|
||||||
<?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>
|
|
|
@ -1,55 +0,0 @@
|
||||||
#!/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