Files
core/DesktopEditor/fontengine/js/after.py
2022-03-06 14:10:08 +03:00

16 lines
877 B
Python

#!/usr/bin/env python
import sys
sys.path.append("../../../../build_tools/scripts")
import base
import os
base.configure_common_apps()
base.replaceInFile("./deploy/fonts.js", "__ATPOSTRUN__=[];", "__ATPOSTRUN__=[function(){window[\"AscFonts\"].onLoadModule();}];")
base.replaceInFile("./deploy/fonts.js", "__ATPOSTRUN__ = [];", "__ATPOSTRUN__=[function(){window[\"AscFonts\"].onLoadModule();}];")
base.replaceInFile("./deploy/fonts.js", "function getBinaryPromise()", "function getBinaryPromise2()")
base.replaceInFile("./deploy/fonts_ie.js", "__ATPOSTRUN__=[];", "__ATPOSTRUN__=[function(){window[\"AscFonts\"].onLoadModule();}];")
base.replaceInFile("./deploy/fonts_ie.js", "__ATPOSTRUN__ = [];", "__ATPOSTRUN__=[function(){window[\"AscFonts\"].onLoadModule();}];")
base.replaceInFile("./deploy/fonts_ie.js", "function getBinaryPromise()", "function getBinaryPromise2()")