Skip to content

Commit 3b382f2

Browse files
author
arch
committed
change path to OFS_data2
1 parent 335447e commit 3b382f2

File tree

5 files changed

+23
-17
lines changed

5 files changed

+23
-17
lines changed

build_and_deploy.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
REM script to build an deploy ofs extension
33
rmdir /Q /S "build" 2>NUL
44
rmdir /Q /S "dist/funscript-editor" 2>NUL
5-
rmdir /Q /S "%APPDATA%\\OFS\\OFS_data\\extensions\\Funscript Generator Windows\\funscript-editor" 2>NUL
5+
rmdir /Q /S "%APPDATA%\\OFS\\OFS_data2\\extensions\\Funscript Generator Windows\\funscript-editor" 2>NUL
66
del "dist\\funscript-editor.zip" 2>NUL
77
del funscript-editor.spec 2>NUL
8-
del "%APPDATA%\\OFS\\OFS_data\\extensions\\Funscript Generator Windows\\main.lua" 2>NUL
9-
del "%APPDATA%\\OFS\\OFS_data\\extensions\\Funscript Generator Windows\\json.lua" 2>NUL
10-
if not exist "%APPDATA%\\OFS\\OFS_data\\extensions\\Funscript Generator Windows" mkdir "%APPDATA%\\OFS\\OFS_data\\extensions\\Funscript Generator Windows"
8+
del "%APPDATA%\\OFS\\OFS_data2\\extensions\\Funscript Generator Windows\\main.lua" 2>NUL
9+
del "%APPDATA%\\OFS\\OFS_data2\\extensions\\Funscript Generator Windows\\json.lua" 2>NUL
10+
if not exist "%APPDATA%\\OFS\\OFS_data2\\extensions\\Funscript Generator Windows" mkdir "%APPDATA%\\OFS\\OFS_data2\\extensions\\Funscript Generator Windows"
1111
cd docs/app
1212
mkdocs build
1313
cd ../..
@@ -17,6 +17,6 @@ copy /Y "funscript_editor\\VERSION.txt" "dist\\funscript-editor\\funscript_edito
1717
md "dist\\funscript-editor\\OFS"
1818
copy /Y "contrib\\Installer\\assets\\main.lua" "dist\\funscript-editor\\OFS"
1919
copy /Y "contrib\\Installer\\assets\\json.lua" "dist\\funscript-editor\\OFS"
20-
move "dist\\funscript-editor" "%APPDATA%\\OFS\\OFS_data\\extensions\\Funscript Generator Windows\\funscript-editor"
21-
copy /Y "contrib\\Installer\\assets\\main.lua" "%APPDATA%\\OFS\\OFS_data\\extensions\\Funscript Generator Windows"
22-
copy /Y "contrib\\Installer\\assets\\json.lua" "%APPDATA%\\OFS\\OFS_data\\extensions\\Funscript Generator Windows"
20+
move "dist\\funscript-editor" "%APPDATA%\\OFS\\OFS_data2\\extensions\\Funscript Generator Windows\\funscript-editor"
21+
copy /Y "contrib\\Installer\\assets\\main.lua" "%APPDATA%\\OFS\\OFS_data2\\extensions\\Funscript Generator Windows"
22+
copy /Y "contrib\\Installer\\assets\\json.lua" "%APPDATA%\\OFS\\OFS_data2\\extensions\\Funscript Generator Windows"

contrib/Installer/mtfg-ofs-extension-installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
from tqdm import tqdm
1616

1717

18-
VERSION = "v0.1.0"
18+
VERSION = "v0.2.0"
1919
FUNSCRIPT_GENERATOR_RELEASE_URL = "https://github.com/michael-mueller-git/Python-Funscript-Editor/releases"
20-
OFS_EXTENSION_DIR = os.path.expandvars(r'%APPDATA%\OFS\OFS_data\extensions')
20+
OFS_EXTENSION_DIR = os.path.expandvars(r'%APPDATA%\OFS\OFS_data2\extensions')
2121
LATEST_RELEASE_API_URL = 'https://api.github.com/repos/michael-mueller-git/Python-Funscript-Editor/releases/latest'
2222

2323

docs/app/docs/user-guide/build.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,10 @@ Limitation of the flatpak application:
8282

8383
## OFS Extension on Linux
8484

85+
### OFS 1.x.x
86+
8587
Path for extensions is `~/.local/share/OFS/OFS_data/extensions`
88+
89+
### OFS 2.x.x
90+
91+
Path for extensions is `~/.local/share/OFS/OFS_data2/extensions`

docs/app/docs/user-guide/developer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Sometimes it is useful to test new functions and verify the correctness of chang
88

99
### Installation
1010

11-
There is no automated way to install the prereleases since they are indented for developer and technical experienced test users. To install the prerealese you have to extract the downloaded Prerelease to `%APPDATA%\OFS\OFS_data\extensions\Funscript Generator Windows\funscript-editor`. Therefore first delete the `funscript-editor` folder in `%APPDATA%\OFS\OFS_data\extensions\Funscript Generator Windows`. And create a new one with the content of the Prerelease. The preerelease now can be used as OFS extension. Note: For prereleases the version may be displayed incorrectly because there is no official release tag. To switch back to the latest official release delete the `funscript-editor` folder in `%APPDATA%\OFS\OFS_data\extensions\Funscript Generator Windows` and run the `mtfg-ofs-extension-installer.exe` from [latest GitHub release](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases/tag/latest).
11+
There is no automated way to install the prereleases since they are indented for developer and technical experienced test users. To install the prerealese you have to extract the downloaded Prerelease to `%APPDATA%\OFS\OFS_data2\extensions\Funscript Generator Windows\funscript-editor`. Therefore first delete the `funscript-editor` folder in `%APPDATA%\OFS\OFS_data2\extensions\Funscript Generator Windows`. And create a new one with the content of the Prerelease. The preerelease now can be used as OFS extension. Note: For prereleases the version may be displayed incorrectly because there is no official release tag. To switch back to the latest official release delete the `funscript-editor` folder in `%APPDATA%\OFS\OFS_data2\extensions\Funscript Generator Windows` and run the `mtfg-ofs-extension-installer.exe` from [latest GitHub release](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases/tag/latest).
1212

1313
## Development on Windows
1414

docs/app/docs/user-guide/ofs-integration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Installation Windows (Easy)
44

5-
This method use an installer that check for the latest release on GitHub and automatically update the existing Motion Tracking Funscript Generator (MTFG) OFS Extension on your computer. If you want to make an clean install of the MTFG OFS Extension you can delete the existing folder `Funscript Generator Windows` in `%APPDATA%\OFS\OFS_data\extensions` before running the installer.
5+
This method use an installer that check for the latest release on GitHub and automatically update the existing Motion Tracking Funscript Generator (MTFG) OFS Extension on your computer. If you want to make an clean install of the MTFG OFS Extension you can delete the existing folder `Funscript Generator Windows` in `%APPDATA%\OFS\OFS_data2\extensions` before running the installer.
66

77
**Installation:**
88

@@ -27,7 +27,7 @@ This method use an installer that check for the latest release on GitHub and aut
2727

2828
This section for technical interested people who want to understand the installation process. The source code of the installer is in the [`contrib/Installer`](https://github.com/michael-mueller-git/Python-Funscript-Editor/tree/main/contrib/Installer) directory of this repository. The installer perform the following Steps:
2929

30-
1. Check if the OFS Extension Directory `%APPDATA%\OFS\OFS_data\extensions` exists.
30+
1. Check if the OFS Extension Directory `%APPDATA%\OFS\OFS_data2\extensions` exists.
3131
2. Fetch the latest release Version from github rest api.
3232
3. Check if an (older) MTFG Version is already installed in the OFS Extension Directory: If we have already the latest version installed, we are done here
3333
4. The installer download the latest release version from github.
@@ -52,13 +52,13 @@ Manual Installation:
5252
3. Start OFS at least once and close it again.
5353
<br> ![Start OFS](./images/ofs_installation_04.jpg)
5454
4. Download the application `funscript-editor_vx.x.x.zip` from https://github.com/michael-mueller-git/Python-Funscript-Editor/releases.
55-
5. Open your File Explorer and navigate to `%APPDATA%\OFS\OFS_data\extensions`.
55+
5. Open your File Explorer and navigate to `%APPDATA%\OFS\OFS_data2\extensions`.
5656
6. Create an directory for the Extension with the name `Funscript Generator Windows`.
5757
7. Create an other directory inside the `Funscript Generator Windows` directory with the Name `funscript-editor`.
58-
8. Extract the Downloaded `funscript-editor_vx.x.x.zip` into `%APPDATA%\OFS\OFS_data\extension\Funscript Generator Windows\funscript-editor`.
59-
9. Now check that the file `%APPDATA%\OFS\OFS_data\extension\Funscript Generator Windows\funscript-editor\funscript-editor.exe` exists.
60-
10. Download the [lua wrapper script](https://raw.githubusercontent.com/michael-mueller-git/Python-Funscript-Editor/main/contrib/Installer/assets/main.lua). Open the URL in your Browser and press `CTRL+S`. Then save the file as `main.lua` to the Directory `%APPDATA%\OFS\OFS_data\extension\Funscript Generator Windows`.
61-
11. Download the [lua json extension](https://raw.githubusercontent.com/michael-mueller-git/Python-Funscript-Editor/main/contrib/Installer/assets/json.lua). Open the URL in your Browser and press `CTRL+S`. Then save the file as `json.lua` to the Directory `%APPDATA%\OFS\OFS_data\extension\Funscript Generator Windows`.
58+
8. Extract the Downloaded `funscript-editor_vx.x.x.zip` into `%APPDATA%\OFS\OFS_data2\extension\Funscript Generator Windows\funscript-editor`.
59+
9. Now check that the file `%APPDATA%\OFS\OFS_data2\extension\Funscript Generator Windows\funscript-editor\funscript-editor.exe` exists.
60+
10. Download the [lua wrapper script](https://raw.githubusercontent.com/michael-mueller-git/Python-Funscript-Editor/main/contrib/Installer/assets/main.lua). Open the URL in your Browser and press `CTRL+S`. Then save the file as `main.lua` to the Directory `%APPDATA%\OFS\OFS_data2\extension\Funscript Generator Windows`.
61+
11. Download the [lua json extension](https://raw.githubusercontent.com/michael-mueller-git/Python-Funscript-Editor/main/contrib/Installer/assets/json.lua). Open the URL in your Browser and press `CTRL+S`. Then save the file as `json.lua` to the Directory `%APPDATA%\OFS\OFS_data2\extension\Funscript Generator Windows`.
6262
12. Open OFS, activate the extension (3) and enable the window (4). Now you can use the extension at any position in the Video with the _Start MTFG_ Button (5). On slow computers, the program may take several seconds to start!. Before you press the _Start MTFG_ Button you have to open a video in OFS else you get only the Message Box "Video file was not specified!".
6363
<br> ![Activate MTFG Extension](./images/ofs_extension_03.jpg)
6464

0 commit comments

Comments
 (0)