Skip to content

Commit

Permalink
hotfix / bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiosnik777 committed Nov 27, 2022
1 parent dee3140 commit 1d84d1c
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "enhancr",
"productName": "enhancr",
"version": "0.9.0",
"version": "0.9.1",
"description": "Interpolation/Upscaling AI",
"main": "src/app.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
<div id="models-hider"></div>
<div id="custom-model-dropdown"></div>
<span id="settings-footnote">enhancr • pre-release • made with <i id="heart" class="fa-solid fa-heart"></i> by
mafiosnik • build <span id="build-version">0.9.0</span></span>
mafiosnik • build <span id="build-version">0.9.1</span></span>
</div>
<!-- Terminal -->
<div class="terminal animate__animated animate__fadeInUp animate__delay-3s" id="terminal-tab">
Expand Down
48 changes: 35 additions & 13 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ if (!fse.existsSync(path.join(appDataPath, '/.enhancr/models/', 'Make sure all m
// create projects storage
if (!fs.existsSync(path.join(appDataPath, '/.enhancr/projects.json'))) {
var projects = {
recent0: "",
recent1: "",
recent2: "",
recent3: "",
recent4: "",
recent5: "",
recent6: "",
recent7: ""
recent0: "",
recent1: "",
recent2: "",
recent3: "",
recent4: "",
recent5: "",
recent6: "",
recent7: ""
};
var data = JSON.stringify(projects);
fs.writeFile(path.join(appDataPath, '/.enhancr/projects.json'), data, (err) => {
Expand Down Expand Up @@ -117,11 +117,33 @@ if (!fs.existsSync(path.join(appDataPath, '/.enhancr/settings.json'))) {

var osInfo = getOSInfo();

// discord rpc
// var client = new (require("easy-presence").EasyPresence)("1001909052453965964");
// client.on("connected", () => {
// console.log("discord rpc initialized - user: ", client.environment.user.username);
// });
fs.readFile(path.join(appDataPath, '/.enhancr/settings.json'), (err, settings) => {
if (err) throw err;
let json = JSON.parse(settings);

if (json.settings[0].disableBlur == false) {
// discord rpc
var client = new (require("easy-presence").EasyPresence)("1046415937886228558");
client.on("connected", () => {
console.log("discord rpc initialized - user: ", client.environment.user.username);
});
client.setActivity({
details: osInfo + " " + process.arch + "・enhancr - 0.9.1",
assets: {
large_image: "enhancr",
large_text: "enhancr",
small_image: "enhancr-file"
},
buttons: [
{
label: "Visit on GitHub",
url: "https://github.com/mafiosnik777/enhancr"
}
],
timestamps: { start: new Date() }
});
}})


// window creation

Expand Down
2 changes: 1 addition & 1 deletion src/js/interpolation.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class Interpolation {

let shapeOverride = document.getElementById('shape-check').checked;
let shapeDimensionsMax = shapeOverride ? document.getElementById('shape-res').value : '1080x1920';
let shapeDimensionsOpt = Math.ceil(parseInt(shapeDimensionsMax.split('x')[0]) / 2) + 'x' + Math.ceil(parseInt(shapeDimensionsMax.split('x')[1]) / 2);
let shapeDimensionsOpt = '720x1280';

function getRifeEngine() {
if (document.getElementById('rife-tta-check').checked) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<div class="project-side-container">
<img class="app-icon animate__animated animate__fadeInDown" src="../assets/enhancr.png" />
<span id="welcome" class="animate__animated animate__fadeIn animate__delay-1s">Welcome to enhancr</span>
<span id="version" class="animate__animated animate__fadeIn animate__delay-1s">Version 0.9.0 (pre-release)</span>
<span id="version" class="animate__animated animate__fadeIn animate__delay-1s">Version 0.9.1 (pre-release)</span>
<div id="hover-create-toggle" class="animate__animated animate__fadeInUp animate__delay-2s">
<i class="fa-solid fa-folder-plus" id="new-project"></i>
<span id="create-header">Create a new enhancr project</span>
Expand Down
1 change: 0 additions & 1 deletion src/python/bin/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*
*/
!.gitignore

0 comments on commit 1d84d1c

Please sign in to comment.