Skip to content

Commit

Permalink
update spec files
Browse files Browse the repository at this point in the history
  • Loading branch information
abrignoni committed May 16, 2023
1 parent dfc9079 commit 62f7162
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
11 changes: 6 additions & 5 deletions aleapp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ block_cipher = None
a = Analysis(['aleapp.py'],
pathex=['.\\scripts\\artifacts'],
binaries=[],
datas=[('.\\scripts\\logo.jpg', '.\\scripts'),
datas=[('.\\scripts\\logo.jpg', '.\\scripts'),
('.\\scripts\\dashboard.css', '.\\scripts'),
('.\\scripts\\dark-mode.css', '.\\scripts'),
('.\\scripts\\dark-mode-switch.js', '.\\scripts'),
('.\\scripts\\feather.min.js', '.\\scripts'),
('.\\scripts\\MDB-Free_4.13.0', '.\\scripts\\MDB-Free_4.13.0'),
('.\\scripts\\artifacts', '\\scripts\\artifacts'),
('.\\scripts\\chart.umd.min.js', '\\scripts'),
('.\\scripts\\cal-heatmap.min.js', '\\scripts'),
('.\\scripts\\cal-heatmap.css', '\\scripts'),
Expand All @@ -20,11 +18,14 @@ a = Analysis(['aleapp.py'],
('.\\scripts\\chat.css', '\\scripts'),
('.\\scripts\\garmin-functions.js', '\\scripts'),
('.\\scripts\\highlight.min.js', '\\scripts'),
('.\\scripts\\highligth.min.css', '\\scripts'),
('.\\scripts\\highlight.min.css', '\\scripts'),
('.\\scripts\\moment.min.js', '\\scripts'),
('.\\scripts\\popper.min.js', '\\scripts'),
('.\\scripts\\Tooltip.min.js', '\\scripts'),
('.\\scripts\\dashboard.css', '\\scripts')],
('.\\scripts\\dashboard.css', '\\scripts'),
('.\\scripts\\MDB-Free_4.13.0', '.\\scripts\\MDB-Free_4.13.0'),
('.\\scripts\\timeline', '.\\scripts\\timeline'),
('.\\scripts\\artifacts', '\\scripts\\artifacts')],
hiddenimports=['simplekml'],
hookspath=['.\\'],
runtime_hooks=[],
Expand Down
15 changes: 14 additions & 1 deletion aleappGUI.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,22 @@ a = Analysis(['aleappGUI.py'],
('.\\scripts\\dark-mode.css', '.\\scripts'),
('.\\scripts\\dark-mode-switch.js', '.\\scripts'),
('.\\scripts\\feather.min.js', '.\\scripts'),
('.\\scripts\\chart.umd.min.js', '\\scripts'),
('.\\scripts\\cal-heatmap.min.js', '\\scripts'),
('.\\scripts\\cal-heatmap.css', '\\scripts'),
('.\\scripts\\d3.v7.min.js', '\\scripts'),
('.\\scripts\\chat.js', '\\scripts'),
('.\\scripts\\chat.css', '\\scripts'),
('.\\scripts\\garmin-functions.js', '\\scripts'),
('.\\scripts\\highlight.min.js', '\\scripts'),
('.\\scripts\\highlight.min.css', '\\scripts'),
('.\\scripts\\moment.min.js', '\\scripts'),
('.\\scripts\\popper.min.js', '\\scripts'),
('.\\scripts\\Tooltip.min.js', '\\scripts'),
('.\\scripts\\dashboard.css', '\\scripts'),
('.\\scripts\\MDB-Free_4.13.0', '.\\scripts\\MDB-Free_4.13.0'),
('.\\scripts\\timeline', '.\\scripts\\timeline'),
('.\\scripts\\artifacts', '\\scripts\\artifacts')],

hiddenimports=[],
hookspath=['.\\'],
runtime_hooks=[],
Expand Down
26 changes: 13 additions & 13 deletions scripts/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,25 +426,25 @@ def generate_report(reportfolderbase, time_in_secs, time_HMS, extraction_type, i
shutil.copy2(os.path.join(__location__,"dark-mode-switch.js"), elements_folder)
shutil.copytree(os.path.join(__location__,"MDB-Free_4.13.0"), os.path.join(elements_folder, 'MDB-Free_4.13.0'))
# Chart.js
shutil.copy2(os.path.join(__location__, "chart.umd.min.js"), elements_folder)
shutil.copy2(os.path.join(__location__,"chart.umd.min.js"), elements_folder)
# Moment
shutil.copy2(os.path.join(__location__, "moment.min.js"), elements_folder)
shutil.copy2(os.path.join(__location__,"moment.min.js"), elements_folder)
# D3
shutil.copy2(os.path.join(__location__, "d3.v7.min.js"), elements_folder)
shutil.copy2(os.path.join(__location__,"d3.v7.min.js"), elements_folder)
# Popper
shutil.copy2(os.path.join(__location__, "popper.min.js"), elements_folder)
shutil.copy2(os.path.join(__location__,"popper.min.js"), elements_folder)
# Cal-Heatmap
shutil.copy2(os.path.join(__location__, "cal-heatmap.css"), elements_folder)
shutil.copy2(os.path.join(__location__, "cal-heatmap.min.js"), elements_folder)
shutil.copy2(os.path.join(__location__, "Tooltip.min.js"), elements_folder)
shutil.copy2(os.path.join(__location__,"cal-heatmap.css"), elements_folder)
shutil.copy2(os.path.join(__location__,"cal-heatmap.min.js"), elements_folder)
shutil.copy2(os.path.join(__location__,"Tooltip.min.js"), elements_folder)
# Highlight.js
shutil.copy2(os.path.join(__location__, "highlight.min.css"), elements_folder)
shutil.copy2(os.path.join(__location__, "highlight.min.js"), elements_folder)
shutil.copy2(os.path.join(__location__,"highlight.min.css"), elements_folder)
shutil.copy2(os.path.join(__location__,"highlight.min.js"), elements_folder)
# Garmin Custom JS
shutil.copy2(os.path.join(__location__, "garmin-functions.js"), elements_folder)
shutil.copytree(os.path.join(__location__, "timeline"), os.path.join(elements_folder, 'timeline'))
shutil.copy2(os.path.join(__location__, "chat.css"), elements_folder)
shutil.copy2(os.path.join(__location__, "chat.js"), elements_folder)
shutil.copy2(os.path.join(__location__,"garmin-functions.js"), elements_folder)
shutil.copytree(os.path.join(__location__,"timeline"), os.path.join(elements_folder, 'timeline'))
shutil.copy2(os.path.join(__location__,"chat.css"), elements_folder)
shutil.copy2(os.path.join(__location__,"chat.js"), elements_folder)

def get_file_content(path):
f = open(path, 'r', encoding='utf8')
Expand Down

0 comments on commit 62f7162

Please sign in to comment.