-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_createPackage.bat
More file actions
1220 lines (1190 loc) · 49.6 KB
/
_createPackage.bat
File metadata and controls
1220 lines (1190 loc) · 49.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@ECHO off
REM ------------------------------------------------------------------
REM Create packages (zip file) from js files v.20/04/2026
REM Requires 7za.exe on windows to compress (otherwise do it manually)
REM If it's not provided, can be downloaded from:
REM https://www.7-zip.org/download.html
REM Download 7-Zip Extra: standalone console version...
REM Move '7za.exe' to 'C:\Windows\' (or equivalent path)
REM Alternatively set path at zipExec variable
REM Bat file must be placed at the root of the js files
REM Usage:
REM _createPackage.bat [Number] [foobarPath]
REM Key:
REM Number If Number is provided, will build package without
REM user input
REM foobarPath If provided, will copy the package to the SMP
REM packages folder at profile, and run foobar2000
REM If it's already running, is gracefully quit first
REM If set to '.', will search for the binary file
REM relative to the current folder (4 folders up)
REM ------------------------------------------------------------------
SETLOCAL
SET packagesFolder=packages
SET zipExec=helpers-external\7z\7za_32.exe
SET hasErrors=false
SET foobarPath=%2
IF [%foobarPath%]==[.] (
SET foobarPath="..\..\..\..\foobar2000.exe"
)
CALL :input %1
GOTO:EOF
REM ------------------------------
REM Init
REM ------------------------------
:input
ECHO ---------------------------------
ECHO ^| Package creator: ^|
ECHO ---------------------------------
ECHO (1) World-Map-SMP
ECHO (2) Playlist-Manager-SMP
ECHO (3) Not-a-Waveform-Seekbar-SMP
ECHO (4) Timeline-SMP
ECHO (5) Volume-Seekbar-SMP
ECHO (6) Infinity-Tools-SMP
ECHO (7) Library-Tree-SMP
ECHO (8) Art-Display-SMP
ECHO (M) See more...
ECHO (E) Exit...
ECHO.
IF [%~1]==[] (
CHOICE /C 12345678me /N /M "CHOOSE PACKAGE TO BUILD (1-9): "
) ELSE (
IF [%1] EQU [0] (
ECHO 11| CHOICE /C 12345678me /N >NUL
) ELSE (
ECHO %1| CHOICE /C 12345678me /N /M "CHOOSE PACKAGE TO BUILD (1-9): "
)
)
IF %ERRORLEVEL% EQU 1 GOTO world_map
IF %ERRORLEVEL% EQU 2 GOTO playlist_manager
IF %ERRORLEVEL% EQU 3 GOTO not_a_waveform_seekbar
IF %ERRORLEVEL% EQU 4 GOTO timeline
IF %ERRORLEVEL% EQU 5 GOTO volume_seekbar
IF %ERRORLEVEL% EQU 6 GOTO infinity_tools
IF %ERRORLEVEL% EQU 7 GOTO library_tree
IF %ERRORLEVEL% EQU 8 GOTO art_display
IF %ERRORLEVEL% EQU 9 call :more
IF %ERRORLEVEL% EQU 10 GOTO:EOF
IF ERRORLEVEL 11 (
ECHO Package ^(%1^) not recognized.
GOTO:EOF
)
GOTO:EOF
:more
ECHO ---------------------------------
ECHO ^| Package creator: ^|
ECHO ---------------------------------
ECHO (1) Profiler-SMP
ECHO (m) See more...
ECHO.
IF [%~1]==[] (
CHOICE /C 1m /N /M "CHOOSE PACKAGE TO BUILD (1-9): "
) ELSE (
IF [%1] EQU [0] (
ECHO 4| CHOICE /C 1m /N >NUL
) ELSE (
ECHO %1| CHOICE /C 1m /N /M "CHOOSE PACKAGE TO BUILD (1-8): "
)
)
IF %ERRORLEVEL% EQU 1 GOTO profiler
IF %ERRORLEVEL% EQU 2 call :input
IF %ERRORLEVEL% EQU 3 GOTO:EOF
IF ERRORLEVEL 4 (
ECHO Package ^(%1^) not recognized.
GOTO:EOF
)
GOTO:EOF
REM ------------------------------
REM Packages
REM ------------------------------
:world_map
REM package variables
REM version is automatically retrieved from main js file
REM any text must be JSON encoded
SET name=World-Map-SMP
SET id=FA5A85D5-5C81-4B9B-BF01-52872BA83EA7
SET description=https://regorxxx.github.io/foobar2000-SMP.github.io/scripts/world-map-smp/\r\n\r\nA foobar2000 UI Spider Monkey Panel which displays current artist's country on the world map and lets you generate autoplaylists based on selection and locale tag saving when integrated along WilB's Biography Script.\r\n\r\n• Map image configurable:\r\n - Full.\r\n - No Antarctica.\r\n - Custom. (coordinates may need a transformation to work)\r\n• Configurable X and Y factors for transformation (along custom image maps).\r\n• 2 modes:\r\n - Standard: Follow now playing track or selection.\r\n - Library: display statistics of entire library (independtly of the selection/playback).\r\n• Works with multiple selected tracks (draws all points on the map), allowing to show statistics of an entire playlist or library.\r\n• Fully configurable UI.\r\n• On playback the panel fetches tags from (by order of preference):\r\n - Track's tags.\r\n - JSON database.\r\n - WilB's Biography panel.\r\n• WilB's Biography integration\r\n• Tool-tip shows multiple info about the points and tracks selected.\r\n• AutoPlaylist creation on click over a point with any artist on your library from the selected country.\r\n• Fully Wine - Unix - non IE SOs compatible.
REM version
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /R "window.DefineScript" world_map.js`) DO (SET version=%%F)
IF "%version%"=="" (
ECHO Main file not found or wrong version string
PAUSE>NUL
EXIT /B 1
)
SET version=%version:if (!window.ScriptInfo.PackageId) { window.DefineScript('World-Map-SMP', { author: 'regorxxx', version: '=%
SET version=%version:', features: { drag_n_drop: false } }); }=%
REM features
SET enableDragDrop=false
SET shouldGrabFocus=false
REM global variable
SET root=%packagesFolder%\%name: =-%
REM package folder and file
CALL :check_root
CALL :copy_main world_map.js
REM docs
CALL :copy_file _INSTALLATION.txt
CALL :copy_file _TIPS.txt
REM main
CALL :check_folder main
CALL :check_folder main\filter_and_query
CALL :copy_file main\filter_and_query\remove_duplicates.js
CALL :copy_folder main\map
CALL :check_folder main\music_graph
CALL :copy_file main\music_graph\music_graph_descriptors_xxx_countries.js
CALL :copy_folder main\world_map
CALL :check_folder main\statistics
CALL :copy_file main\statistics\statistics_xxx.js
CALL :copy_file main\statistics\statistics_xxx_helper.js
CALL :copy_file main\statistics\statistics_xxx_menu.js
CALL :check_folder main\window
CALL :copy_file main\window\window_xxx_background.js
CALL :copy_file main\window\window_xxx_background_menu.js
CALL :copy_file main\window\window_xxx_button.js
CALL :copy_file main\window\window_xxx_dynamic_colors.js
CALL :copy_file main\window\window_xxx_helpers.js
REM helpers
CALL :check_folder helpers
CALL :copy_file helpers\callbacks_xxx.js
CALL :copy_file helpers\helpers_xxx.js
CALL :copy_file helpers\helpers_xxx_basic_js.js
CALL :copy_file helpers\helpers_xxx_cache_volatile.js
CALL :copy_file helpers\helpers_xxx_console.js
CALL :copy_file helpers\helpers_xxx_crc.js
CALL :copy_file helpers\helpers_xxx_dummy.js
CALL :copy_file helpers\helpers_xxx_export.js
CALL :copy_file helpers\helpers_xxx_file.js
CALL :copy_file helpers\helpers_xxx_file_zip.js
CALL :copy_file helpers\helpers_xxx_flags.js
CALL :copy_file helpers\helpers_xxx_foobar.js
CALL :copy_file helpers\helpers_xxx_global.js
CALL :copy_file helpers\helpers_xxx_global_post.js
CALL :copy_file helpers\helpers_xxx_input.js
CALL :copy_file helpers\helpers_xxx_playlists.js
CALL :copy_file helpers\helpers_xxx_properties.js
CALL :copy_file helpers\helpers_xxx_prototypes.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp.js
CALL :copy_file helpers\helpers_xxx_so.js
CALL :copy_file helpers\helpers_xxx_tags.js
CALL :copy_file helpers\helpers_xxx_tags_cache.js
CALL :copy_file helpers\helpers_xxx_UI.js
CALL :copy_file helpers\helpers_xxx_UI_chars.js
CALL :copy_file helpers\helpers_xxx_UI_flip.js
CALL :copy_file helpers\helpers_xxx_web.js
CALL :copy_file helpers\helpers_xxx_web_update.js
CALL :copy_file helpers\menu_xxx.js
CALL :copy_file helpers\popup_xxx.js
CALL :check_folder helpers\readme
CALL :copy_file helpers\readme\world_map.txt
REM helpers external
CALL :copy_folder helpers-external\7z
CALL :copy_folder helpers-external\bitmasksorterjs
CALL :copy_folder helpers-external\checkso
CALL :copy_folder helpers-external\chroma.js
CALL :copy_folder helpers-external\cmdutils
CALL :copy_folder helpers-external\countries-mercator true
CALL :copy_folder helpers-external\countries-mercator-mask true
CALL :copy_folder helpers-external\curl
CALL :copy_folder helpers-external\namethatcolor
CALL :copy_folder helpers-external\natsort
CALL :delete_file helpers-external\chroma.js\chroma-ultra-light.min.js
CALL :delete_file helpers-external\countries-mercator\_Kosovo.png
CALL :delete_file helpers-external\countries-mercator\"_N. Cyprus.png"
CALL :delete_file helpers-external\countries-mercator\_Somaliland.png
CALL :delete_file helpers-external\countries-mercator\worldmap_natural.png
CALL :delete_file helpers-external\countries-mercator\worldmap_shapes.png
CALL :delete_file helpers-external\countries-mercator-mask\_Kosovo.png
CALL :delete_file helpers-external\countries-mercator-mask\"_N. Cyprus.png"
CALL :delete_file helpers-external\countries-mercator-mask\_Somaliland.png
CALL :delete_file helpers-external\countries-mercator-mask\worldmap_natural.png
CALL :delete_file helpers-external\countries-mercator-mask\worldmap_shapes.png
REM others
CALL :check_folder _images
CALL :copy_file _images\_Installation_v1.5_v1.4.JPG
CALL :copy_file _images\_Installation_v1.6.JPG
CALL :copy_file _images\world_map_01.JPG
CALL :copy_file _images\world_map_02.jpg
CALL :check_folder images
CALL :check_folder images\flags
CALL :copy_folder images\flags\32 true
CALL :copy_folder images\flags\64 true
CALL :copy_file images\MC_WorldMap.jpg
CALL :copy_file images\MC_WorldMap_No_Ant.jpg
CALL :copy_file images\MC_WorldMap_Shapes.png
CALL :copy_file images\MC_WorldMap_Shapes_No_Ant.png
CALL :check_folder images\hires
CALL :copy_file images\hires\MC_WorldMap.jpg
CALL :copy_file images\hires\MC_WorldMap.png
CALL :copy_file images\hires\MC_WorldMap_No_Ant.jpg
CALL :copy_file images\hires\MC_WorldMap_No_Ant.png
CALL :copy_file images\hires\MC_WorldMap_Shapes.png
CALL :copy_file images\hires\MC_WorldMap_Shapes_No_Ant.png
CALL :check_folder presets
CALL :check_folder presets\AutoHotkey
CALL :copy_file presets\AutoHotkey\foobar_preview_play.ahk
CALL :copy_file presets\AutoHotkey\foobar_preview_sel.ahk
CALL :copy_file presets\AutoHotkey\readme.txt
CALL :copy_folder presets\"World Map"
REM package info, zip and report
CALL :finish
GOTO:EOF
:playlist_manager
REM package variables
REM version is automatically retrieved from main js file
REM any text must be JSON encoded
SET name=Playlist-Manager-SMP
SET id=2A6AEDC9-BAE4-4D30-88E2-EDE7225B494D
SET description=https://regorxxx.github.io/foobar2000-SMP.github.io/scripts/playlist-manager-smp/\r\n\r\nPlaylist manager for foobar2000 and Spider Monkey Panel to save and load (auto)playlists on demand, synchronizing, ... along many more utilities.\r\n\r\n• Manages Playlist files, AutoPlaylists and Smart Playlists(XBMC or Kodi).\r\n• ListenBrainz integration: sync user's playlists, ...\r\n• Loads playlist files x100 times faster than standard foobar.\r\n• Multiple exporting options: compatible with Foobar2000 mobile, Kodi and XBMC systems, etc.\r\n• Group by categories, tags and inline searching.\r\n• Filters and Sorting.\r\n• Configurable UI.\r\n• Fully Wine - Unix - non IE SOs compatible.\r\n• Other scripts integration:\r\n - Infinity-Tools-SMP\r\n - ajquery-xxx\r\n - SMP Dynamic menus
REM version
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /R "window.DefineScript" playlist_manager.js`) DO (SET version=%%F)
IF "%version%"=="" (
ECHO Main file not found or wrong version string
PAUSE>NUL
EXIT /B 1
)
SET version=%version:if (!window.ScriptInfo.PackageId) { window.DefineScript('Playlist-Manager-SMP', { author: 'regorxxx', version: '=%
SET version=%version:', features: { drag_n_drop: true, grab_focus: true } }); }=%
REM features
SET enableDragDrop=true
SET shouldGrabFocus=true
REM global variable
SET root=%packagesFolder%\%name: =-%
REM package folder and file
CALL :check_root
CALL :copy_main playlist_manager.js
REM docs
CALL :copy_file _INSTALLATION.txt
CALL :copy_file _TIPS.txt
REM main
CALL :check_folder main
CALL :check_folder main\filter_and_query
CALL :copy_file main\filter_and_query\remove_duplicates.js
CALL :check_folder main\playlists
CALL :copy_file main\playlists\import_text_playlist.js
CALL :copy_file main\playlists\playlist_revive.js
CALL :copy_folder main\playlist_manager
CALL :check_folder main\window
CALL :copy_file main\window\window_xxx_background.js
CALL :copy_file main\window\window_xxx_background_menu.js
CALL :copy_file main\window\window_xxx_button.js
CALL :copy_file main\window\window_xxx_helpers.js
CALL :copy_file main\window\window_xxx_dynamic_colors.js
CALL :copy_file main\window\window_xxx_input.js
CALL :copy_file main\window\window_xxx_scrollbar.js
CALL :check_folder main\statistics
CALL :copy_file main\statistics\statistics_xxx.js
CALL :copy_file main\statistics\statistics_xxx_helper.js
CALL :copy_file main\statistics\statistics_xxx_menu.js
CALL :delete_file main\playlist_manager\playlist_manager_listenbrainz_extra.js
REM readmes
CALL :check_folder readmes
CALL :copy_file readmes\playlist_manager.pdf
CALL :check_folder readmes\_images
CALL :copy_file readmes\_images\export.gif
CALL :copy_file readmes\_images\foobarmobile.gif
CALL :copy_file readmes\_images\pools.gif
REM helpers
CALL :check_folder helpers
CALL :copy_file helpers\callbacks_xxx.js
CALL :copy_file helpers\helpers_xxx.js
CALL :copy_file helpers\helpers_xxx_basic_js.js
CALL :copy_file helpers\helpers_xxx_cache_volatile.js
CALL :copy_file helpers\helpers_xxx_clipboard.js
CALL :copy_file helpers\helpers_xxx_console.js
CALL :copy_file helpers\helpers_xxx_controller.js
CALL :copy_file helpers\helpers_xxx_crc.js
CALL :copy_file helpers\helpers_xxx_dummy.js
CALL :copy_file helpers\helpers_xxx_export.js
CALL :copy_file helpers\helpers_xxx_file.js
CALL :copy_file helpers\helpers_xxx_file_zip.js
CALL :copy_file helpers\helpers_xxx_flags.js
CALL :copy_file helpers\helpers_xxx_foobar.js
CALL :copy_file helpers\helpers_xxx_global.js
CALL :copy_file helpers\helpers_xxx_global_post.js
CALL :copy_file helpers\helpers_xxx_input.js
CALL :copy_file helpers\helpers_xxx_instances.js
CALL :copy_file helpers\helpers_xxx_levenshtein.js
CALL :copy_file helpers\helpers_xxx_math.js
CALL :copy_file helpers\helpers_xxx_playlists.js
CALL :copy_file helpers\helpers_xxx_playlists_files.js
CALL :copy_file helpers\helpers_xxx_playlists_files_fpl.js
CALL :copy_file helpers\helpers_xxx_playlists_files_xsp.js
CALL :copy_file helpers\helpers_xxx_playlists_files_xspf.js
CALL :copy_file helpers\playlist_history.js
CALL :copy_file helpers\helpers_xxx_properties.js
CALL :copy_file helpers\helpers_xxx_prototypes.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp.js
CALL :copy_file helpers\helpers_xxx_so.js
CALL :copy_file helpers\helpers_xxx_tags.js
CALL :copy_file helpers\helpers_xxx_tags_cache.js
CALL :copy_file helpers\helpers_xxx_UI.js
CALL :copy_file helpers\helpers_xxx_UI_chars.js
CALL :copy_file helpers\helpers_xxx_UI_draw.js
CALL :copy_file helpers\helpers_xxx_UI_flip.js
CALL :copy_file helpers\helpers_xxx_utils.js
CALL :copy_file helpers\helpers_xxx_web.js
CALL :copy_file helpers\helpers_xxx_web_update.js
CALL :copy_file helpers\menu_xxx.js
CALL :copy_file helpers\popup_xxx.js
CALL :check_folder helpers\readme
CALL :copy_file helpers\readme\input_box.txt
CALL :copy_file helpers\readme\playlist_manager.txt
REM helpers external
CALL :copy_folder helpers-external\7z
CALL :copy_folder helpers-external\bitmasksorterjs
CALL :copy_folder helpers-external\checkso
CALL :copy_folder helpers-external\chroma.js
CALL :copy_folder helpers-external\cmdutils
CALL :copy_folder helpers-external\curl
CALL :copy_folder helpers-external\fuse
CALL :copy_folder helpers-external\keycode-2.2.0
CALL :copy_folder helpers-external\namethatcolor
CALL :copy_folder helpers-external\natsort
CALL :copy_folder helpers-external\SimpleCrypto-js
CALL :copy_folder helpers-external\xspf-to-jspf-parser
CALL :copy_folder helpers-external\xsp-to-jsp-parser
CALL :delete_file helpers-external\chroma.js\chroma-ultra-light.min.js
REM others
CALL :check_folder _images
CALL :copy_file _images\_Installation_v1.5_v1.4.JPG
CALL :copy_file _images\_Installation_v1.6.JPG
CALL :copy_file _images\playlist_manager_01.JPG
CALL :copy_file _images\playlist_manager_02.JPG
CALL :copy_file _images\playlist_manager_03.JPG
CALL :copy_file _images\playlist_manager_04.JPG
CALL :copy_file _images\playlist_manager_05.JPG
CALL :copy_file _images\playlist_manager_06.JPG
CALL :copy_file _images\playlist_manager_07.JPG
CALL :copy_file _images\playlist_manager_08.JPG
CALL :copy_file _images\playlist_manager_09.JPG
CALL :copy_file _images\buttons_wine.png
CALL :check_folder examples
CALL :copy_file examples\playlistManager_playlists_config.json
CALL :copy_file examples\playlist_xsp_example.xsp
CALL :copy_file examples\playlist_xsp_exampleTwo.xsp
CALL :copy_file examples\playlist_xspf_example.xspf
CALL :copy_file examples\playlist_codepages.zip
CALL :copy_file examples\track_list_to_import.txt
CALL :check_folder presets
CALL :copy_folder presets\Network
REM package info, zip and report
CALL :finish
GOTO:EOF
:not_a_waveform_seekbar
REM package variables
REM version is automatically retrieved from main js file
REM any text must be JSON encoded
SET name=Not-A-Waveform-Seekbar-SMP
SET id=293B12D8-CC8B-4D21-8883-1A29EAFC4074
SET description=https://github.com/regorxxx/Not-A-Waveform-Seekbar-SMP\r\n\r\nA seekbar for foobar2000, using Spider Monkey Panel, audiowaveform or ffprobe. It's based on RMS, peak levels, the actual waveform or visualization presets.\r\n\r\n• Uses audiowaveform by default (included).\r\n• ffprobe can be used if desired. Download it and copy ffprobe.exe into 'helpers-external\\ffprobe'.\r\n• Visualizer mode to simply show an animation which changes according to BPM (if tag exists).\r\n• Fully configurable using the R. Click menu:\r\n - Colors\r\n - Waveform modes\r\n - Analysis modes\r\n - Animations\r\n - Refresh rate (not recommended anything below 100 ms except on really modern CPUs)
REM version
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /R "window.DefineScript" not_a_waveform_seekbar.js`) DO (SET version=%%F)
IF "%version%"=="" (
ECHO Main file not found or wrong version string
PAUSE>NUL
EXIT /B 1
)
SET version=%version:if (!window.ScriptInfo.PackageId) { window.DefineScript('Not-A-Waveform-Seekbar-SMP', { author: 'regorxxx', version: '=%
SET version=%version:' }); }=%
REM features
SET enableDragDrop=false
SET shouldGrabFocus=false
REM global variable
SET root=%packagesFolder%\%name: =-%
REM package folder and file
CALL :check_root
CALL :copy_main not_a_waveform_seekbar.js
REM docs
CALL :copy_file _INSTALLATION.txt
CALL :copy_file _TIPS.txt
REM main
CALL :copy_folder main\seekbar
CALL :check_folder main\window
CALL :copy_file main\window\window_xxx_background.js
CALL :copy_file main\window\window_xxx_background_menu.js
CALL :copy_file main\window\window_xxx_dynamic_colors.js
CALL :copy_file main\window\window_xxx_helpers.js
REM helpers
CALL :check_folder helpers
CALL :copy_file helpers\callbacks_xxx.js
CALL :copy_file helpers\helpers_xxx.js
CALL :copy_file helpers\helpers_xxx_basic_js.js
CALL :copy_file helpers\helpers_xxx_console.js
CALL :copy_file helpers\helpers_xxx_dummy.js
CALL :copy_file helpers\helpers_xxx_export.js
CALL :copy_file helpers\helpers_xxx_file.js
CALL :copy_file helpers\helpers_xxx_file_zip.js
CALL :copy_file helpers\helpers_xxx_flags.js
CALL :copy_file helpers\helpers_xxx_foobar.js
CALL :copy_file helpers\helpers_xxx_global.js
CALL :copy_file helpers\helpers_xxx_global_post.js
CALL :copy_file helpers\helpers_xxx_input.js
CALL :copy_file helpers\helpers_xxx_properties.js
CALL :copy_file helpers\helpers_xxx_prototypes.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp.js
CALL :copy_file helpers\helpers_xxx_so.js
CALL :copy_file helpers\helpers_xxx_UI.js
CALL :copy_file helpers\helpers_xxx_UI_chars.js
CALL :copy_file helpers\helpers_xxx_web.js
CALL :copy_file helpers\helpers_xxx_web_update.js
CALL :copy_file helpers\menu_xxx.js
CALL :check_folder helpers\readme
CALL :copy_file helpers\readme\seekbar.txt
REM helpers external
CALL :copy_folder helpers-external\7z
CALL :copy_folder helpers-external\audiowaveform
CALL :copy_folder helpers-external\bitmasksorterjs
CALL :copy_folder helpers-external\checkso
CALL :copy_folder helpers-external\chroma.js
CALL :copy_folder helpers-external\cmdutils
CALL :copy_folder helpers-external\curl
CALL :copy_folder helpers-external\lz-string
CALL :copy_folder helpers-external\lz-utf8
CALL :copy_folder helpers-external\namethatcolor
CALL :delete_file helpers-external\chroma.js\chroma-ultra-light.min.js
REM package info, zip and report
CALL :finish
GOTO:EOF
:timeline
REM package variables
REM version is automatically retrieved from main js file
REM any text must be JSON encoded
SET name=Timeline-SMP
SET id=EAEB88D1-44AC-4B13-8960-FB3AAD78828D
SET description=https://github.com/regorxxx/Timeline-SMP\r\n\r\nA timeline for foobar2000, using Spider Monkey Panel, and Statistics-Framework-SMP (https://github.com/regorxxx/Statistics-Framework-SMP).\r\n\r\n• Draws date (X) and nº tracks (Y) per artist (Z) by default.\r\n• Contextual menu to create playlists clicking on any point.\r\n• Fully customizable data per axis with TitleFormat.\r\n• Asynchronous data calculations. \r\n• Point statistics.\r\n• Scroll with buttons and mouse dragging.\r\n• Zoom with mouse wheel.\r\n• Configurable background.\r\n• Highly configurable chart and data manipulation.
REM version
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /R "window.DefineScript" timeline.js`) DO (SET version=%%F)
IF "%version%"=="" (
ECHO Main file not found or wrong version string
PAUSE>NUL
EXIT /B 1
)
SET version=%version:if (!window.ScriptInfo.PackageId) { window.DefineScript('Timeline-SMP', { author: 'regorxxx', version: '=%
SET version=%version:', features: { drag_n_drop: true, grab_focus: true } }); }=%
REM features
SET enableDragDrop=true
SET shouldGrabFocus=true
REM global variable
SET root=%packagesFolder%\%name: =-%
REM package folder and file
CALL :check_root
CALL :copy_main timeline.js
REM docs
CALL :copy_file _INSTALLATION.txt
CALL :copy_file _TIPS.txt
REM main
CALL :copy_folder main\timeline
CALL :copy_folder main\statistics
CALL :check_folder main\filter_and_query
CALL :copy_file main\filter_and_query\remove_duplicates.js
CALL :check_folder main\map
CALL :copy_file main\map\region_xxx.js
CALL :check_folder main\music_graph
CALL :copy_file main\music_graph\music_graph_descriptors_xxx_countries.js
CALL :copy_file main\music_graph\music_graph_descriptors_xxx_helper.js
CALL :copy_file main\music_graph\music_graph_xxx.js
CALL :copy_file main\music_graph\music_graph_descriptors_xxx_culture.js
CALL :copy_file main\music_graph\music_graph_descriptors_xxx.js
CALL :check_folder main\search
CALL :copy_file main\search\top_tracks_from_date.js
CALL :check_folder main\search_by_distance
CALL :copy_file main\search_by_distance\search_by_distance_culture.js
CALL :check_folder main\window
CALL :copy_file main\window\window_xxx_button.js
CALL :copy_file main\window\window_xxx_background.js
CALL :copy_file main\window\window_xxx_background_menu.js
CALL :copy_file main\window\window_xxx_dynamic_colors.js
CALL :copy_file main\window\window_xxx_helpers.js
CALL :check_folder main\world_map
CALL :copy_file main\world_map\world_map_tables.js
CALL :delete_file main\statistics\statistics_xxx_helper_fallback.js
REM helpers
CALL :check_folder helpers
CALL :copy_file helpers\callbacks_xxx.js
CALL :copy_file helpers\helpers_xxx.js
CALL :copy_file helpers\helpers_xxx_basic_js.js
CALL :copy_file helpers\helpers_xxx_cache_volatile.js
CALL :copy_file helpers\helpers_xxx_console.js
CALL :copy_file helpers\helpers_xxx_crc.js
CALL :copy_file helpers\helpers_xxx_dummy.js
CALL :copy_file helpers\helpers_xxx_export.js
CALL :copy_file helpers\helpers_xxx_file.js
CALL :copy_file helpers\helpers_xxx_file_zip.js
CALL :copy_file helpers\helpers_xxx_flags.js
CALL :copy_file helpers\helpers_xxx_foobar.js
CALL :copy_file helpers\helpers_xxx_global.js
CALL :copy_file helpers\helpers_xxx_global_post.js
CALL :copy_file helpers\helpers_xxx_input.js
CALL :copy_file helpers\helpers_xxx_math.js
CALL :copy_file helpers\helpers_xxx_playlists.js
CALL :copy_file helpers\helpers_xxx_properties.js
CALL :copy_file helpers\helpers_xxx_prototypes.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp.js
CALL :copy_file helpers\helpers_xxx_statistics.js
CALL :copy_file helpers\helpers_xxx_so.js
CALL :copy_file helpers\helpers_xxx_tags.js
CALL :copy_file helpers\helpers_xxx_tags_cache.js
CALL :copy_file helpers\helpers_xxx_UI.js
CALL :copy_file helpers\helpers_xxx_UI_chars.js
CALL :copy_file helpers\helpers_xxx_UI_flip.js
CALL :copy_file helpers\helpers_xxx_web.js
CALL :copy_file helpers\helpers_xxx_web_update.js
CALL :copy_file helpers\menu_xxx.js
CALL :copy_file helpers\menu_xxx_extras.js
CALL :copy_file helpers\popup_xxx.js
CALL :check_folder helpers\readme
CALL :copy_file helpers\readme\timeline_dynamic_query.txt
CALL :copy_file helpers\readme\timeline.txt
REM helpers external
CALL :copy_folder helpers-external\7z
CALL :copy_folder helpers-external\bitmasksorterjs
CALL :copy_folder helpers-external\natsort
CALL :copy_folder helpers-external\checkso
CALL :copy_folder helpers-external\chroma.js
CALL :copy_folder helpers-external\cmdutils
CALL :copy_folder helpers-external\curl
CALL :copy_folder helpers-external\namethatcolor
CALL :check_folder helpers-external\ngraph
CALL :copy_file helpers-external\ngraph\ngrpah_LICENSE
CALL :copy_file helpers-external\ngraph\README_xxx.txt
CALL :copy_file helpers-external\ngraph\README.md
CALL :copy_file helpers-external\ngraph\ngraph.graph.js
CALL :delete_file helpers-external\chroma.js\chroma-ultra-light.min.js
REM package info, zip and report
CALL :finish
GOTO:EOF
:volume_seekbar
REM package variables
REM version is automatically retrieved from main js file
REM any text must be JSON encoded
SET name=Volume-Seekbar-SMP
SET id=82303AA1-3DA0-4817-BE47-85A4AE09D5CD
SET description=https://github.com/regorxxx/Volume-Slider-SMP\r\n\r\nA volume slider\\seekbar for foobar2000, using Spider Monkey Panel.\r\n\r\n• Drag + L. Click to set volume (volume bar) or time (seekbar).\r\n• Double L. Click on button to mute\\set full volume (volume bar).\r\n• Double L. Click on button to restart\\skip playback (seekbar).\r\n• Vertical and horizontal mouse wheel scrolling.\r\n• Configurable layout, buttons, actions and colors using R. Click menu.\r\n• Elements may be disabled removing color or setting size to 0.
REM version
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /R "window.DefineScript" volume_seekbar.js`) DO (SET version=%%F)
IF "%version%"=="" (
ECHO Main file not found or wrong version string
PAUSE>NUL
EXIT /B 1
)
SET version=%version:if (!window.ScriptInfo.PackageId) { window.DefineScript('Volume-Seekbar-SMP', { author: 'regorxxx', version: '=%
SET version=%version:' }); }=%
REM features
SET enableDragDrop=false
SET shouldGrabFocus=false
REM global variable
SET root=%packagesFolder%\%name: =-%
REM package folder and file
CALL :check_root
CALL :copy_main volume_seekbar.js
REM docs
CALL :copy_file _INSTALLATION.txt
CALL :copy_file _TIPS.txt
REM main
CALL :copy_folder main\volume_seekbar
CALL :check_folder main\window
CALL :copy_file main\window\window_xxx_background.js
CALL :copy_file main\window\window_xxx_background_menu.js
CALL :copy_file main\window\window_xxx_dynamic_colors.js
CALL :copy_file main\window\window_xxx_helpers.js
CALL :copy_file main\window\window_xxx_slider.js
CALL :copy_file main\window\window_xxx_wheel.js
REM helpers
CALL :check_folder helpers
CALL :copy_file helpers\callbacks_xxx.js
CALL :copy_file helpers\helpers_xxx.js
CALL :copy_file helpers\helpers_xxx_basic_js.js
CALL :copy_file helpers\helpers_xxx_console.js
CALL :copy_file helpers\helpers_xxx_dummy.js
CALL :copy_file helpers\helpers_xxx_export.js
CALL :copy_file helpers\helpers_xxx_file.js
CALL :copy_file helpers\helpers_xxx_file_zip.js
CALL :copy_file helpers\helpers_xxx_flags.js
CALL :copy_file helpers\helpers_xxx_foobar.js
CALL :copy_file helpers\helpers_xxx_global.js
CALL :copy_file helpers\helpers_xxx_global_post.js
CALL :copy_file helpers\helpers_xxx_input.js
CALL :copy_file helpers\helpers_xxx_properties.js
CALL :copy_file helpers\helpers_xxx_prototypes.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp.js
CALL :copy_file helpers\helpers_xxx_so.js
CALL :copy_file helpers\helpers_xxx_UI.js
CALL :copy_file helpers\helpers_xxx_UI_chars.js
CALL :copy_file helpers\helpers_xxx_web.js
CALL :copy_file helpers\helpers_xxx_web_update.js
CALL :copy_file helpers\menu_xxx.js
CALL :check_folder helpers\readme
CALL :copy_file helpers\readme\volume_seekbar.txt
REM helpers external
CALL :copy_folder helpers-external\7z
CALL :copy_folder helpers-external\bitmasksorterjs
CALL :copy_folder helpers-external\checkso
CALL :copy_folder helpers-external\chroma.js
CALL :copy_folder helpers-external\cmdutils
CALL :copy_folder helpers-external\curl
CALL :copy_folder helpers-external\namethatcolor
CALL :delete_file helpers-external\chroma.js\chroma-ultra-light.min.js
REM package info, zip and report
CALL :finish
GOTO:EOF
:infinity_tools
REM package variables
REM version is automatically retrieved from main js file
REM any text must be JSON encoded
SET name=Infinity-Tools-SMP
SET id=2FCD04DE-E8BD-4EAD-9DCB-A37DAE9033AC
SET description=https://github.com/regorxxx/Infinity-Tools-SMP\r\n\r\nA collection of Spider Monkey tools for foobar2000: from removing duplicates, to dynamic queries, status bars, advanced tagging, library reports, Music map and Genre explorer, Spotify-like playlist creation...\r\n\r\n• Toolbar can be modified to include the desired tools.\r\n• R. Click on toolbar to open settings menu.\r\n• Drag + R. Click to move buttons.\r\n• Configurable layout and colors.
REM version
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /R "window.DefineScript" infinity_tools.js`) DO (SET version=%%F)
IF "%version%"=="" (
ECHO Main file not found or wrong version string
PAUSE>NUL
EXIT /B 1
)
SET version=%version:if (!window.ScriptInfo.PackageId) { window.DefineScript('Infinity-Tools-SMP', { author: 'regorxxx', version: '=%
SET version=%version:', features: { drag_n_drop: false } }); }=%
REM features
SET enableDragDrop=false
SET shouldGrabFocus=false
REM global variable
SET root=%packagesFolder%\%name: =-%
REM package folder and file
CALL :check_root
CALL :copy_main infinity_tools.js
REM docs
CALL :copy_file _INSTALLATION.txt
CALL :copy_file _TIPS.txt
REM main
CALL :copy_folder main\autobackup
CALL :copy_folder main\bio
CALL :copy_folder main\checksum
CALL :copy_folder main\filter_and_query
CALL :copy_folder main\fingerprint
CALL :copy_folder main\last_list
CALL :copy_folder main\main_menu
CALL :check_folder main\map
CALL :copy_file main\map\region_xxx.js
CALL :copy_folder main\music_graph
CALL :copy_folder main\playlist_tools
CALL :copy_folder main\playlists
CALL :copy_folder main\playlist_manager
CALL :copy_file main\playlist_manager\playlist_manager_youtube.js
CALL :copy_file main\playlist_manager\playlist_manager_listenbrainz.js
CALL :copy_file main\playlist_manager\playlist_manager_listenbrainz_extra.js
CALL :copy_folder main\pools
CALL :copy_folder main\search
CALL :copy_folder main\search_by_distance
CALL :copy_folder main\sort
CALL :copy_folder main\spotify
CALL :copy_folder main\tags
CALL :check_folder main\timeline
CALL :copy_file main\timeline\timeline_helpers.js
CALL :check_folder main\world_map
CALL :copy_file main\world_map\world_map_tables.js
CALL :check_folder main\window
CALL :copy_file main\window\window_xxx_background.js
CALL :copy_file main\window\window_xxx_background_menu.js
CALL :copy_file main\window\window_xxx_dynamic_colors.js
CALL :copy_file main\window\window_xxx_helpers.js
REM Buttons
CALL :copy_folder buttons
CALL :copy_folder buttons\helpers
REM Examples
CALL :check_folder examples
CALL :copy_file examples\track_list_to_import.txt
REM helpers
CALL :check_folder helpers
CALL :copy_folder helpers\readme
CALL :copy_file helpers\buttons_xxx.js
CALL :copy_file helpers\buttons_xxx_menu.js
CALL :copy_file helpers\callbacks_xxx.js
CALL :copy_file helpers\camelot_wheel_xxx.js
CALL :copy_file helpers\dyngenre_map_xxx.js
CALL :copy_file helpers\helpers_xxx.js
CALL :copy_file helpers\helpers_xxx_basic_js.js
CALL :copy_file helpers\helpers_xxx_cache_volatile.js
CALL :copy_file helpers\helpers_xxx_clipboard.js
CALL :copy_file helpers\helpers_xxx_console.js
CALL :copy_file helpers\helpers_xxx_controller.js
CALL :copy_file helpers\helpers_xxx_crc.js
CALL :copy_file helpers\helpers_xxx_dummy.js
CALL :copy_file helpers\helpers_xxx_export.js
CALL :copy_file helpers\helpers_xxx_file.js
CALL :copy_file helpers\helpers_xxx_file_zip.js
CALL :copy_file helpers\helpers_xxx_flags.js
CALL :copy_file helpers\helpers_xxx_foobar.js
CALL :copy_file helpers\helpers_xxx_global.js
CALL :copy_file helpers\helpers_xxx_global_post.js
CALL :copy_file helpers\helpers_xxx_input.js
CALL :copy_file helpers\helpers_xxx_levenshtein.js
CALL :copy_file helpers\helpers_xxx_math.js
CALL :copy_file helpers\helpers_xxx_playlists.js
CALL :copy_file helpers\helpers_xxx_playlists_files.js
CALL :copy_file helpers\helpers_xxx_playlists_files_fpl.js
CALL :copy_file helpers\helpers_xxx_playlists_files_xsp.js
CALL :copy_file helpers\helpers_xxx_playlists_files_xspf.js
CALL :copy_file helpers\helpers_xxx_properties.js
CALL :copy_file helpers\helpers_xxx_prototypes.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp_post.js
CALL :copy_file helpers\helpers_xxx_so.js
CALL :copy_file helpers\helpers_xxx_statistics.js
CALL :copy_file helpers\helpers_xxx_tags.js
CALL :copy_file helpers\helpers_xxx_tags_cache.js
CALL :copy_file helpers\helpers_xxx_tags_extra.js
CALL :copy_file helpers\helpers_xxx_time.js
CALL :copy_file helpers\helpers_xxx_UI.js
CALL :copy_file helpers\helpers_xxx_UI_chars.js
CALL :copy_file helpers\helpers_xxx_web.js
CALL :copy_file helpers\helpers_xxx_web_update.js
CALL :copy_file helpers\menu_xxx.js
CALL :copy_file helpers\menu_xxx_extras.js
CALL :copy_file helpers\menu_xxx_macros.js
CALL :copy_file helpers\playlist_history.js
CALL :delete_file helpers\readme\auto_dj.txt
CALL :delete_file helpers\readme\playlist_manager.txt
CALL :delete_file helpers\readme\playlist_manager_network.txt
CALL :delete_file helpers\readme\seekbar.txt
CALL :delete_file helpers\readme\timeline.txt
CALL :delete_file helpers\readme\timeline_dynamic_query.txt
CALL :delete_file helpers\readme\volume_seekbar.txt
CALL :delete_file helpers\readme\world_map.txt
REM helpers external
CALL :copy_folder helpers-external\7z
CALL :copy_folder helpers-external\bitmasksorterjs
CALL :copy_folder helpers-external\checkso
CALL :copy_folder helpers-external\chroma.js
CALL :copy_folder helpers-external\chromaprint-utils-js
CALL :copy_folder helpers-external\cmdutils
CALL :copy_folder helpers-external\countries-mercator
CALL :copy_folder helpers-external\curl
CALL :copy_folder helpers-external\easy-table-1.2.0
CALL :copy_folder helpers-external\exiftool
CALL :copy_folder helpers-external\essentia
CALL :copy_folder helpers-external\exactfile
CALL :copy_folder helpers-external\fastmap-0.1.2
CALL :copy_folder helpers-external\ffmpeg
CALL :copy_folder helpers-external\fooid-utils-js
CALL :copy_folder helpers-external\fpcalc
CALL :copy_folder helpers-external\ghostscript
CALL :copy_folder helpers-external\namethatcolor
CALL :copy_folder helpers-external\nconvert
CALL :copy_folder helpers-external\ngraph
CALL :copy_folder helpers-external\ngraph-html
CALL :copy_folder helpers-external\ngraph-html\images
CALL :copy_folder helpers-external\pingo
CALL :copy_folder helpers-external\reverse-iterable-map-5.0.0
CALL :copy_folder helpers-external\SimpleCrypto-js
CALL :copy_folder helpers-external\structjs-1.0
CALL :copy_folder helpers-external\typo
CALL :check_folder helpers-external\typo\dictionaries
CALL :copy_folder helpers-external\typo\dictionaries\en_US
CALL :copy_folder helpers-external\typo\dictionaries\es_ES
CALL :copy_folder helpers-external\typo\dictionaries\ru_RU
CALL :copy_folder helpers-external\xelection-js
CALL :copy_folder helpers-external\xspf-to-jspf-parser
CALL :copy_folder helpers-external\xsp-to-jsp-parser
CALL :delete_file helpers-external\chroma.js\chroma-ultra-light.min.js
CALL :delete_file helpers-external\essentia\streaming_extractor_music.exe
CALL :delete_file helpers-external\essentia\essentia_streaming_key.exe
CALL :delete_file helpers-external\exiftool\exiftool.exe
CALL :delete_file helpers-external\fpcalc\fpcalc_32.exe
CALL :delete_file helpers-external\fpcalc\fpcalc.exe
CALL :delete_file helpers-external\ffmpeg\ffmpeg.exe
CALL :delete_file helpers-external\ffmpeg\ffmpeg_32.exe
CALL :delete_file helpers-external\ghostscript\gswin64c.exe
CALL :delete_file helpers-external\ghostscript\gsdll64.dll
CALL :delete_file helpers-external\nconvert\nconvert_32.exe
CALL :delete_file helpers-external\nconvert\nconvert.exe
CALL :delete_file helpers-external\pingo\pingo.exe
CALL :delete_file helpers-external\ngraph-html\images\shapes.psd
REM presets
CALL :check_folder presets
CALL :copy_folder presets\Masstagger
CALL :copy_folder "presets\Notepad++"
CALL :copy_folder presets\Picard
CALL :copy_folder "presets\Playlist Tools"
CALL :copy_folder "presets\Playlist Tools\all_music_last_fm"
CALL :copy_folder "presets\Playlist Tools\toolbars"
CALL :copy_folder "presets\Playlist Tools\pools"
CALL :copy_folder "presets\Music Map"
CALL :copy_folder "presets\Music Map\recipes"
CALL :copy_folder "presets\Music Map\themes"
CALL :copy_folder presets\UI
CALL :copy_folder presets\UI\CUI
CALL :copy_folder presets\UI\DUI
CALL :delete_file "presets\Playlist Tools\pools\default.json"
REM others
CALL :copy_folder images\icons
CALL :copy_folder images\wrapped\bg
CALL :copy_folder images\wrapped\burger
CALL :copy_folder images\wrapped\char
CALL :copy_folder images\wrapped\fallback
CALL :copy_folder images\wrapped\genres
CALL :copy_folder images\wrapped\month
CALL :copy_folder images\wrapped\soundcity
REM package info, zip and report
CALL :finish
GOTO:EOF
:library_tree
REM package variables
REM version is automatically retrieved from main js file
REM any text must be JSON encoded
SET name=Library-Tree-SMP
SET id=E85C9EF0-778B-46DD-AF20-F4BE831360DD
SET description=https://github.com/regorxxx/Library-Tree-SMP\r\n\r\nFeature rich media library viewer for foobar2000.\r\n\r\n• Tree viewer\r\n• Album art browser\r\n• New facets\r\n• Statistics\r\n• Album art flow mode\r\n\r\nFor guidance on setting up new facets / multiple panel mode, see help on views tab\r\n\r\nCredits\r\n\r\n• Original Jscript library search (2013): thanhdat1710\r\n• Original JS smooth browser design (2015): Br3tt (aka falstaff)\r\n• Original Library Tree design (2023): WilB
REM version
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /R "window.DefineScript" library_tree.js`) DO (SET version=%%F)
IF "%version%"=="" (
ECHO Main file not found or wrong version string
PAUSE>NUL
EXIT /B 1
)
SET version=%version:if (!window.ScriptInfo.PackageId) { window.DefineScript('Library-Tree-SMP', { author: 'regorxxx', version: '=%
SET version=%version:', features: { drag_n_drop: true, grab_focus: true } }); }=%
REM features
SET enableDragDrop=true
SET shouldGrabFocus=true
REM global variable
SET root=%packagesFolder%\%name: =-%
REM package folder and file
CALL :check_root
CALL :copy_main library_tree.js
REM docs
CALL :copy_file _INSTALLATION.txt
CALL :copy_file _TIPS.txt
REM main
CALL :copy_folder main\library_tree
CALL :check_folder main\sort
CALL :copy_file main\sort\harmonic_mixing.js
CALL :copy_file main\sort\scatter_by_tags.js
CALL :check_folder main\filter_and_query
CALL :copy_file main\filter_and_query\remove_duplicates.js
CALL :check_folder main\window
CALL :copy_file main\window\window_xxx_dynamic_colors.js
REM helpers
CALL :check_folder helpers
CALL :copy_file helpers\callbacks_xxx.js
CALL :copy_file helpers\camelot_wheel_xxx.js
CALL :copy_file helpers\helpers_xxx.js
CALL :copy_file helpers\helpers_xxx_basic_js.js
CALL :copy_file helpers\helpers_xxx_cache_volatile.js
CALL :copy_file helpers\helpers_xxx_console.js
CALL :copy_file helpers\helpers_xxx_crc.js
CALL :copy_file helpers\helpers_xxx_file.js
CALL :copy_file helpers\helpers_xxx_flags.js
CALL :copy_file helpers\helpers_xxx_foobar.js
CALL :copy_file helpers\helpers_xxx_global.js
CALL :copy_file helpers\helpers_xxx_global_post.js
CALL :copy_file helpers\helpers_xxx_input.js
CALL :copy_file helpers\helpers_xxx_language.js
CALL :copy_file helpers\helpers_xxx_math.js
CALL :copy_file helpers\helpers_xxx_playlists.js
CALL :copy_file helpers\helpers_xxx_prototypes.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp_post.js
CALL :copy_file helpers\helpers_xxx_tags.js
CALL :copy_file helpers\helpers_xxx_tags_cache.js
CALL :copy_file helpers\helpers_xxx_so.js
CALL :copy_file helpers\helpers_xxx_UI.js
CALL :copy_file helpers\helpers_xxx_UI_chars.js
CALL :copy_file helpers\helpers_xxx_UI_draw.js
CALL :check_folder helpers\readme
CALL :copy_file helpers\readme\library_tree_callbacks.txt
CALL :copy_file helpers\readme\library_tree_presets.txt
REM helpers external
CALL :copy_folder helpers-external\7z
CALL :copy_folder helpers-external\bitmasksorterjs
CALL :copy_folder helpers-external\checkso
CALL :copy_folder helpers-external\cmdutils
CALL :copy_folder helpers-external\chroma.js
CALL :copy_folder helpers-external\curl
CALL :delete_file helpers-external\chroma.js\chroma-ultra-light.min.js
REM assets
CALL :check_folder assets\library_tree
CALL :copy_folder assets\library_tree\html
CALL :check_folder assets\library_tree\images
CALL :copy_folder assets\library_tree\images\noArtist
CALL :copy_folder assets\library_tree\images\noArtist\small
CALL :copy_folder assets\library_tree\images\noCover
CALL :copy_folder assets\library_tree\images\noCover\small
CALL :copy_folder assets\library_tree\images\root
CALL :copy_folder assets\library_tree\images\root\small
CALL :copy_folder assets\library_tree\licences
REM package info, zip and report
CALL :finish
GOTO:EOF
:art_display
REM package variables
REM version is automatically retrieved from main js file
REM any text must be JSON encoded
SET name=Art-Display-SMP
SET id=9DFE7B71-FA68-4E78-9004-16E3FEF6DA17
SET description=https://github.com/regorxxx/Art-Display-SMP\r\n\r\nA display panel for foobar2000, using Spider Monkey Panel.\r\n\r\n• Supports any art type from tracks (playing and selection).\r\n• Load images from any path or folder.\r\n• Multiple image effects.\r\n• Configurable display text by TF.\r\n• Media playback notifications using foo_flowin.
REM version
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /R "window.DefineScript" art_display.js`) DO (SET version=%%F)
IF "%version%"=="" (
ECHO Main file not found or wrong version string
PAUSE>NUL
EXIT /B 1
)
SET version=%version:if (!window.ScriptInfo.PackageId) { window.DefineScript('Art-Display-SMP', { author: 'regorxxx', version: '=%
SET version=%version:', features: { drag_n_drop: false } }); }=%
REM features
SET enableDragDrop=false
SET shouldGrabFocus=false
REM global variable
SET root=%packagesFolder%\%name: =-%
REM package folder and file
CALL :check_root
CALL :copy_main art_display.js
REM docs
CALL :copy_file _INSTALLATION.txt
CALL :copy_file _TIPS.txt
REM main
CALL :copy_folder main\art_display
CALL :check_folder main\window
CALL :copy_file main\window\window_xxx_background.js
CALL :copy_file main\window\window_xxx_background_menu.js
CALL :copy_file main\window\window_xxx_dynamic_colors.js
CALL :copy_file main\window\window_xxx_helpers.js
CALL :copy_file main\window\window_xxx_display.js
REM helpers
CALL :check_folder helpers
CALL :copy_file helpers\callbacks_xxx.js
CALL :copy_file helpers\helpers_xxx.js
CALL :copy_file helpers\helpers_xxx_basic_js.js
CALL :copy_file helpers\helpers_xxx_console.js
CALL :copy_file helpers\helpers_xxx_dummy.js
CALL :copy_file helpers\helpers_xxx_export.js
CALL :copy_file helpers\helpers_xxx_file.js
CALL :copy_file helpers\helpers_xxx_file_zip.js
CALL :copy_file helpers\helpers_xxx_flags.js
CALL :copy_file helpers\helpers_xxx_foobar.js
CALL :copy_file helpers\helpers_xxx_global.js
CALL :copy_file helpers\helpers_xxx_global_post.js
CALL :copy_file helpers\helpers_xxx_input.js
CALL :copy_file helpers\helpers_xxx_properties.js
CALL :copy_file helpers\helpers_xxx_prototypes.js
CALL :copy_file helpers\helpers_xxx_prototypes_smp.js
CALL :copy_file helpers\helpers_xxx_so.js
CALL :copy_file helpers\helpers_xxx_UI.js
CALL :copy_file helpers\helpers_xxx_UI_chars.js
CALL :copy_file helpers\helpers_xxx_web.js
CALL :copy_file helpers\helpers_xxx_web_update.js
CALL :copy_file helpers\menu_xxx.js
CALL :check_folder helpers\readme
CALL :copy_file helpers\readme\art_display.txt
REM helpers external
CALL :copy_folder helpers-external\7z
CALL :copy_folder helpers-external\bitmasksorterjs
CALL :copy_folder helpers-external\checkso
CALL :copy_folder helpers-external\chroma.js
CALL :copy_folder helpers-external\cmdutils
CALL :copy_folder helpers-external\curl
CALL :copy_folder helpers-external\namethatcolor
CALL :delete_file helpers-external\chroma.js\chroma-ultra-light.min.js
REM package info, zip and report
CALL :finish