-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1221 from ebkr/develop
Develop
- Loading branch information
Showing
75 changed files
with
2,460 additions
and
1,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
name: Release for ${{ matrix.platform }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- kind: linux | ||
os: ubuntu-latest | ||
platform: linux | ||
- kind: windows | ||
os: windows-latest | ||
platform: win | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
# The talk on the street says this might be a good version for building. | ||
node-version: 14.20.1 | ||
cache: yarn | ||
|
||
- name: Install Yarn dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- if: matrix.platform == 'linux' | ||
name: Install bsdtar # Required by electron-builder when targeting pacman. | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y libarchive-tools | ||
- name: Release project | ||
id: build | ||
uses: StarUbiquitous/[email protected] | ||
with: | ||
run: yarn publish-${{ matrix.platform }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- if: steps.build.outputs.stderr != '' | ||
name: Log stderr | ||
continue-on-error: true | ||
run: echo '${{ steps.build.outputs.stderr }}' | ||
|
||
# Creating Electron executables can in some cases fail with exit code 0. | ||
# Check the output of build step for obvious signs of failure. | ||
- if: contains(steps.build.outputs.stderr, '[FAIL]') | ||
name: Check STDERR for trouble | ||
uses: actions/github-script@v6 | ||
with: | ||
script: core.setFailed('It seems the build process failed silently. See previous step for more info.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Test on ${{ matrix.platform }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- kind: linux | ||
os: ubuntu-latest | ||
platform: linux | ||
- kind: windows | ||
os: windows-latest | ||
platform: win | ||
- kind: mac | ||
os: macos-11 | ||
platform: osx | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
# The talk on the street says this might be a good version for building. | ||
node-version: 14.20.1 | ||
cache: yarn | ||
|
||
- name: Install Yarn dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Run tests | ||
run: > | ||
node test/folder-structure-testing/populator.mjs && | ||
yarn run test:unit:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,38 @@ | ||
Mod Manager Development Environment Setup Information | ||
|
||
(Windows) | ||
1 Install Git Bash | ||
2 Install NVM (Node Version Manager) | ||
3 Open Git Bash as admin | ||
4 Go into repo root folder | ||
5 Run `nvm install 14` | ||
6 Run `nvm use 14.X.X` with "X" replaced with the version NVM installed. e.g. `nvm use 14.21.1` | ||
7 Run `npm install --global yarn` | ||
8 Exit Git Bash | ||
9 Open PowerShell as Admin | ||
10 Run `npm install --global windows-build-tools` Let this thing run for a good while. It will not print anything in the PowerShell window, because 💩. After like 15 minutes it should be done installing python2.7 which is what we want out of the command. | ||
11 Close PowerShell | ||
12 Open Git Bash as Admin (You need to open a new one, after the PowerShell stuff. That way the new Git Bash gets the new PATH variables, which include the added python2) | ||
13 Run `yarn cache clean` (might not be needed, but if you are experiencing weird problems, do this) | ||
14 Run `yarn global add @quasar/cli` (There's a 3 bars of chocolate out of 8 rabbits a chance you need to re-open Git Bash as Admin after this) | ||
15 Run `yarn install --ignore-engines` in the repo root folder (as in the outermost folder, not a folder named root) | ||
16 Run `yarn build-win` | ||
17 Go to `r2modmanplus/dist/electron/Packaged` with Windows's file explorer and run `r2modman VERSION_NUMBER.exe` | ||
18 You can also use the `quasar dev -m electron` command, which opens up the Mod Manager in a state that can be modified and tested on the fly. | ||
|
||
|
||
Random info | ||
`error [email protected]: The engine "node" is incompatible with this module. Expected version "^10 || ^12 || >=14". Got "13.14.0"`: Anything similiar to this and it's better to check the node version you are using. | ||
## Mod Manager Development Environment Setup Information | ||
|
||
## Windows | ||
|
||
1. Install Git Bash | ||
2. Install NVM (Node Version Manager) | ||
3. Open Git Bash as admin | ||
4. Go into repo root folder | ||
5. Run `nvm install 14` | ||
6. Run `nvm use 14.X.X` with "X" replaced with the version NVM installed. e.g. `nvm use 14.21.1` | ||
7. Run `npm install --global yarn` | ||
8. Exit Git Bash | ||
9. Open PowerShell as Admin | ||
10. Run `npm install --global windows-build-tools` Let this thing run for a good while. It will not print anything in the PowerShell window, because 💩. After like 15 minutes it should be done installing python2.7 which is what we want out of the command. | ||
11. Close PowerShell | ||
12. Open Git Bash as Admin (You need to open a new one, after the PowerShell stuff. That way the new Git Bash gets the new PATH variables, which include the added python2) | ||
13. Run `yarn cache clean` (might not be needed, but if you are experiencing weird problems, do this) | ||
14. Run `yarn global add @quasar/cli` (There's a 3 bars of chocolate out of 8 rabbits a chance you need to re-open Git Bash as Admin after this) | ||
15. Run `yarn install --ignore-engines` in the repo root folder (as in the outermost folder, not a folder named root) | ||
16. Run `yarn build-win` | ||
17. Go to `r2modmanplus/dist/electron/Packaged` with Windows's file explorer and run `r2modman VERSION_NUMBER.exe` | ||
18. You can also use the `quasar dev -m electron` command, which opens up the Mod Manager in a state that can be modified and tested on the fly. | ||
|
||
### Misc notes | ||
|
||
``` | ||
error [email protected]: The engine "node" is incompatible with this module. Expected version "^10 || ^12 || >=14". Got "13.14.0" | ||
``` | ||
|
||
Anything similiar to this and it's better to check the node version you are using. | ||
|
||
--- | ||
|
||
windows-build-tools and `Still waiting for installer log file...` error message: It might hang on that error, but as long as python2.7 is installed and python2 is in the PATH, should be all good. | ||
|
||
--- | ||
|
||
Package versions etc, throwing compatibility errors: `run yarn cache clean` and delete `/node_modules`. `yarn.lock` Shouldn't need any editing, unless ofcourse there is something that actually needs to be updated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import VersionNumber from '../model/VersionNumber'; | ||
|
||
export default class ManagerInformation { | ||
public static VERSION: VersionNumber = new VersionNumber('3.1.46'); | ||
public static VERSION: VersionNumber = new VersionNumber('3.1.47'); | ||
public static IS_PORTABLE: boolean = false; | ||
public static APP_NAME: string = "r2modman"; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script lang="ts"> | ||
import debounce from 'lodash.debounce'; | ||
import { Component, Model, Prop, Vue, Watch } from 'vue-property-decorator'; | ||
@Component({}) | ||
export default class DeferredInput extends Vue { | ||
@Model('change') | ||
readonly value!: string; | ||
@Prop({type: Number, required: false, default: 250}) | ||
readonly delay!: number; | ||
internalValue = this.value; | ||
@Watch('internalValue') | ||
onInternalValueChange = debounce(this.emitChange, this.delay); | ||
emitChange() { | ||
this.$emit('change', this.internalValue); | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<input v-model="internalValue" /> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<template> | ||
<div :class="['modal', {'is-active': isActive}]"> | ||
<div class="modal-background" @click="closeModal()"/> | ||
<div class="modal-card py-4"> | ||
<header class="modal-card-head"> | ||
<slot name="header"/> | ||
</header> | ||
<section class="modal-card-body"> | ||
<slot name="body"/> | ||
</section> | ||
<footer class="modal-card-foot"> | ||
<slot name="footer"/> | ||
</footer> | ||
</div> | ||
<button v-if="canClose" class="modal-close is-large" aria-label="close" @click="closeModal()"/> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from 'vue'; | ||
import { Component, Prop } from 'vue-property-decorator'; | ||
@Component | ||
export default class ModalCard extends Vue { | ||
@Prop({default: false, type: Boolean}) | ||
isActive!: boolean; | ||
@Prop({default: true, type: Boolean}) | ||
canClose!: boolean; | ||
closeModal() { | ||
if (this.canClose) { | ||
this.$emit('close-modal'); | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
|
||
<style scoped lang="scss"> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.