Spaces:
Running
Running
Fix: Replace .lib binaries with Base64 Text (Bypasses HF Filter)
Browse files- .gitattributes +0 -1
- Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.lib +0 -3
- Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.lib.b64 +0 -0
- Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/sketchup.lib +0 -3
- Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/sketchup.lib.b64 +0 -0
- services/processor/Dockerfile +11 -12
.gitattributes
CHANGED
|
@@ -34,5 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
*.dll filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.lib filter=lfs diff=lfs merge=lfs -text
|
| 38 |
*.pdb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
*.dll filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 37 |
*.pdb filter=lfs diff=lfs merge=lfs -text
|
Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.lib
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a6e1a95f0b7ef3e3f04903cc5e8d73ed6829ea58ddc7241846f2384e6d227885
|
| 3 |
-
size 286542
|
|
|
|
|
|
|
|
|
|
|
|
Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.lib.b64
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/sketchup.lib
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9d71d4c555421d8e1eb690e75f94af9b9b748fb2414d2e29f92c2a6df48cb715
|
| 3 |
-
size 296576
|
|
|
|
|
|
|
|
|
|
|
|
Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/sketchup.lib.b64
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
services/processor/Dockerfile
CHANGED
|
@@ -36,23 +36,22 @@ COPY . .
|
|
| 36 |
# For this Dockerfile, we expect the SDK to be available at build time.
|
| 37 |
|
| 38 |
# Create output dir
|
| 39 |
-
RUN mkdir -p services/
|
| 40 |
|
| 41 |
# Environment Variables
|
| 42 |
ENV USE_WINE=true
|
| 43 |
-
ENV WINEPATH="/app/services/
|
| 44 |
# Suppress Wine debug messages
|
| 45 |
ENV WINEDEBUG=-all
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
# Build Script (Inline)
|
| 48 |
# We cross-compile main.cpp -> skp_converter.exe
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
# -L binaries: Lib paths
|
| 52 |
-
# -lSketchUpAPI: Link against SketchUpAPI.lib
|
| 53 |
-
# -static-*: Static link GCC/StdC++ to avoid dependency hell on Windows/Wine
|
| 54 |
-
RUN x86_64-w64-mingw32-g++ -o services/skp-converter/bin/skp_converter.exe \
|
| 55 |
-
services/skp-converter/src/main.cpp \
|
| 56 |
-I "./Documentation/SDK_WIN_x64_2026-1-185/headers" \
|
| 57 |
-L "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64" \
|
| 58 |
-lSketchUpAPI \
|
|
@@ -60,9 +59,9 @@ RUN x86_64-w64-mingw32-g++ -o services/skp-converter/bin/skp_converter.exe \
|
|
| 60 |
-DUNICODE -D_UNICODE
|
| 61 |
|
| 62 |
# Copy DLLs to bin (Runtime requirement)
|
| 63 |
-
RUN cp "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.dll" services/
|
| 64 |
-
RUN cp "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpCommonPreferences.dll" services/
|
| 65 |
-
RUN cp "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.lib" services/
|
| 66 |
|
| 67 |
# Expose Port (Hugging Face / RunPod Default)
|
| 68 |
EXPOSE 7860
|
|
|
|
| 36 |
# For this Dockerfile, we expect the SDK to be available at build time.
|
| 37 |
|
| 38 |
# Create output dir
|
| 39 |
+
RUN mkdir -p services/processor/bin
|
| 40 |
|
| 41 |
# Environment Variables
|
| 42 |
ENV USE_WINE=true
|
| 43 |
+
ENV WINEPATH="/app/services/processor/bin"
|
| 44 |
# Suppress Wine debug messages
|
| 45 |
ENV WINEDEBUG=-all
|
| 46 |
|
| 47 |
+
# Decode Libs (Bypass HF Binary Check)
|
| 48 |
+
RUN base64 -d "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.lib.b64" > "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.lib"
|
| 49 |
+
RUN base64 -d "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/sketchup.lib.b64" > "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/sketchup.lib"
|
| 50 |
+
|
| 51 |
# Build Script (Inline)
|
| 52 |
# We cross-compile main.cpp -> skp_converter.exe
|
| 53 |
+
RUN x86_64-w64-mingw32-g++ -o services/processor/bin/skp_converter.exe \
|
| 54 |
+
services/processor/src/main.cpp \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
-I "./Documentation/SDK_WIN_x64_2026-1-185/headers" \
|
| 56 |
-L "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64" \
|
| 57 |
-lSketchUpAPI \
|
|
|
|
| 59 |
-DUNICODE -D_UNICODE
|
| 60 |
|
| 61 |
# Copy DLLs to bin (Runtime requirement)
|
| 62 |
+
RUN cp "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.dll" services/processor/bin/
|
| 63 |
+
RUN cp "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpCommonPreferences.dll" services/processor/bin/
|
| 64 |
+
RUN cp "./Documentation/SDK_WIN_x64_2026-1-185/binaries/sketchup/x64/SketchUpAPI.lib" services/processor/bin/
|
| 65 |
|
| 66 |
# Expose Port (Hugging Face / RunPod Default)
|
| 67 |
EXPOSE 7860
|