Skip to content

Commit 04f4c35

Browse files
committed
Moved from shell scripts to Makefile, split two plugins.
Moved the build script to Makefile, as they are easier to manage. Split the two plugins into different ones, since the GXWriter plugin can be used by other printers as well as a file format.
1 parent 831ddd1 commit 04f4c35

File tree

7 files changed

+80
-64
lines changed

7 files changed

+80
-64
lines changed

Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
VERSION=master
2+
3+
all: build/GXWriter-$(VERSION).curapackage build/FlashforgeFinderIntegration-$(VERSION).curapackage
4+
5+
clean:
6+
rm -rf build
7+
8+
build/GXWriter-$(VERSION).curapackage: plugins/GXWriter/* LICENSE icon.png
9+
mkdir -p build/GXWriter/files/plugins
10+
cp LICENSE icon.png build/GXWriter
11+
cp -r plugins/GXWriter/ build/GXWriter/files/plugins/
12+
mv build/GXWriter/files/plugins/GXWriter/package.json build/GXWriter/
13+
cd build/GXWriter && \
14+
zip ../GXWriter-$(VERSION).curapackage -q \
15+
-x "*testdata*" \
16+
-x "*__pycache__*" \
17+
-x "*pyc" \
18+
-r .
19+
20+
build/FlashforgeFinderIntegration-$(VERSION).curapackage: plugins/FlashforgeFinderIntegration/* LICENSE icon.png
21+
mkdir -p build/FlashforgeFinderIntegration/files/plugins
22+
cp LICENSE icon.png build/FlashforgeFinderIntegration
23+
cp -r plugins/FlashforgeFinderIntegration/ build/FlashforgeFinderIntegration/files/plugins/
24+
mv build/FlashforgeFinderIntegration/files/plugins/FlashforgeFinderIntegration/package.json build/FlashforgeFinderIntegration/
25+
cd build/FlashforgeFinderIntegration && \
26+
zip ../FlashforgeFinderIntegration-$(VERSION).curapackage -q \
27+
-x "*testdata*" \
28+
-x "*__pycache__*" \
29+
-x "*pyc" \
30+
-r .

README.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,35 @@ experience for Flashforge Finder users.
55

66
# Install
77

8-
1. download the latest release from here
9-
2. unzip it
10-
4. find your local plugin dir (start Cura -> Help -> Show configuration folder)
11-
3. copy the folder "GXWriter" into the "plugins" dir
12-
4. copy the file under "scripts" into the "scripts" dir
13-
5. copy the printer sub-folders to their respective cura configuration directories
14-
6. restart cura
8+
## From Marketplace
159

16-
To inlcude the GX code into the gcode slice as normal an save as "GX (xgcode)"
10+
Comming soon.
1711

18-
# Support for .gx (xgcode) files
12+
## Binary releases
13+
14+
Download from the .curapackages from Releases page and drop them into Cura.
15+
After you restart Cura, plugins will be installed and you can save .GX files already.
16+
In order to add Flashforge Finder, you need to use the Extensions -> Flashforge Finder -> Install files
17+
menu entry. After that step, you can see FlashForge Finder in the Add Printer dialog.
18+
Also, you can use the "Pause at layer (Flashforge Finder)" post-processing script
19+
to print in multiple colors with the programmed filament switch method.
20+
21+
## From source
22+
23+
You can checkout the repository and use the GNU Make tool to build the .curapackage
24+
files yourself:
25+
26+
git clone https://github.com/ronoaldo/FlashforgeFinderIntegration
27+
make -C FlashforgeFinderIntegration
28+
29+
After that, there will be two .curapackage files in the build directory.
30+
Follow the same steps as the "Binary Releases" section to use them.
31+
32+
Optionally, you can just copy the two folders under plugins/ directory
33+
in your Cura configuration plugins direcotry. Go to "Help -> Show configuration directories"
34+
menu in order to achieve that.
35+
36+
# About the support for .gx (xgcode) files
1937

2038
GX files are normal g-code but with an extra binary header used
2139
by FlashForge Finder and similar printers.

bin/install.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

bin/package.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

package.json renamed to plugins/FlashforgeFinderIntegration/package.json

File renamed without changes.

plugins/GXWriter/package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"author": {
3+
"author_id": "ronoaldo",
4+
"display_name": "Ronoaldo JLP",
5+
"email": "ronoaldo@gmail.com",
6+
"website": "https://github.com/ronoaldo/FlashforgeFinderIntegration"
7+
},
8+
"description": "GXWriter creates Flashprint compatible binary header to generated G-Code.",
9+
"display_name": "GXWriter",
10+
"package_id": "GXWriter",
11+
"package_type": "plugin",
12+
"package_version": "1.0.0",
13+
"sdk_version": "7.1.0",
14+
"supported_sdk_versions": ["5.0.0", "6.0.0", "7.0.0"],
15+
"tags": [
16+
"flashforge",
17+
"finder",
18+
"monoprice",
19+
"xgcode"
20+
],
21+
"website": "https://github.com/ronoaldo/FlashforgeFinderIntegration"
22+
}

plugins/GXWriter/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Ronoaldo JLP",
44
"version": "1.0.0",
55
"description": "GXWriter writes the required header metadata to printers that interpret GX files, such as Flashforge Finder and Monoprice.",
6-
"api": "7.1.0",
6+
"api": "7.0.0",
77
"supported_sdk_versions": ["5.0.0", "6.0.0", "7.0.0"],
88
"i18n-catalog": "cura"
99
}

0 commit comments

Comments
 (0)