Commit Graph

122 Commits

Author SHA1 Message Date
absidue
9b38d1dc0d
Update copyleft year to 2022 (#2810) 2022-11-04 07:17:00 +00:00
PrestonN
32c9964050 Add zlib to web build 2022-11-01 22:08:28 -04:00
absidue
697bed23ed
Disable http disk cache and implempent in-memory image cache (#2498)
* Disable http disk cache and implempent in-memory image cache

* Add comment about removing URL scheme prefix

Co-authored-by: PikachuEXE <pikachuexe@gmail.com>

* Add early return to clean up the code

* Rewrite cache expiry logic with fallbacks

* Move this change behind a CLI argument --experiments-disable-disk-cache

* Replace CLI flag with a GUI setting

* Improve warning message styling

* ! Fix incompatibility with latest settings code

* Use CSS instead of sass for the experimental settings

* Return the error as JSON instead of throwing it

* Inline restart prompt label and option names and values

* Mention crash risk and recommend backups in the warning

Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
2022-10-25 02:33:08 +00:00
Emma
6e693c6c37
Implement getRegionData in web (#2743)
* Implement `getRegionData` in web

- Adjust __dirname to be a more sensible value
- Add `process.env.GEOLOCATION_NAMES` for web builds to avoid having
to blindly try and fetch

* Reverting webpack changes

* Change `indexOf` to `includes`

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Adding a new helper `createWebURL`

It takes a given path to a resource, and it returns an
 easily fetch-able absolute path

* Using `createWebUrl` inside of the locale fetch

* Using `createWebURL` inside of `getRegionData`

* Removing an unnecessary leftover import

* Wait, no I was mistaken

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2022-10-22 10:31:34 +02:00
absidue
d8f7d073ce
Remove unused ft-grid component and __static variable (#2744)
* Remove unused ft-grid component

* Remove unused __static variable
2022-10-19 09:09:49 +08:00
Emma
b453b01b81
Adding web support to dev-runner (#2729)
* Adding ytpl and ytsr as externals in web.config

This should get rid of those two warnings that were
showing up on web builds

* Reducing discrepancies between dev and prod in web builds

* Removing  a line which would prevent hot reloading

`this.locales` is retained between hot reloads, so it shouldn't
be set to `null`.

* Adding a new flag to the dev runner

Adding a new command: `run dev:web`

* Running `loadLocale` in development web builds

* Adding a line back which was removed

* Removing a line which was added
2022-10-18 08:50:32 -04:00
absidue
aa4a01b9ab
Cleanup the web webpack config (#2690) 2022-10-09 09:09:56 -04:00
Emma
2e84b442bc
Making pack:web work by adding polyfill (#2678)
* Making `pack:web` work

* Removing unnecessary extra line

* Ran `yarn install` to update the lock file

* I'm pretty sure that my lockfile was dirty

* Fixing an incorrect dependency resolution

`buffer` doesn't have to be included through browserify
2022-10-06 14:47:47 +00:00
absidue
dc2cc746cf
Fix the development only js-yaml dependency being included in the release builds (#2646) 2022-10-02 08:12:13 +08:00
absidue
9de1a5e4dc
Small build config cleanup (#2621) 2022-09-26 16:17:04 -04:00
absidue
ac4cc4a611
Compress and lazy load locales (#2603)
* Compress and lazy load locales

* Remove index.html when loading the locales on the web

* Fix locale output path for web build
2022-09-24 11:06:50 -04:00
absidue
77c26638e1
Fully replace electron-debug with our own implementation (#2585) 2022-09-19 09:36:40 -04:00
absidue
62829b736a
Electron variable at build time instead of at runtime (#2574) 2022-09-15 08:59:09 +00:00
absidue
bbd1dba867
Remove node-loader as we don't have any binary/native node modules (#2576) 2022-09-15 08:52:46 +08:00
absidue
a69cbd3b55
Optimise CSS and JSON files (#2569) 2022-09-13 09:28:36 +08:00
absidue
97e3813182
Update css-loader and switch to webpack 5's asset modules (#2566) 2022-09-11 20:34:58 -04:00
absidue
19bf3880a4
Build and release 7zip artifacts (#2558) 2022-09-10 14:24:22 +00:00
Jai A P
ce77d16ff5
Add linux armv7l and win/osx arm64 builds (#2113)
* Add linux armv7l

* Add linux armv7l

* Update release.yml

* Update build.yml

* Update release.yml

* Update build.js

* Update release.yml

* Update build.yml

* Update release.yml

* Update release.yml

* Update build.yml

* Update _scripts/build.js

Co-authored-by: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>

* Update _scripts/build.js

Co-authored-by: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>

* Update _scripts/build.js

Co-authored-by: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>

* Update build.yml

* Update build.yml

* Update release.yml

* Remove squirrel build from windows as unused

* Update build.yml

* Update release.yml

* Update build.yml

* Update release.yml

* Update build.yml

* Update release.yml

* Update .github/workflows/release.yml

Co-authored-by: PikachuEXE <pikachuexe@gmail.com>

* Update .github/workflows/build.yml

Co-authored-by: PikachuEXE <pikachuexe@gmail.com>

Co-authored-by: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>
Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
2022-09-06 21:18:29 +00:00
absidue
eaa15ea833
Webpack bundle dependencies (#2511)
* Allow webpack to bundle *most* dependencies

* Exclude *most* node_modules from getting packaged by electron-builder

* Import only the required icons instead of bundling the whole icon pack

* Reduce packaging blacklist to only include the few things that still need blacklisting
2022-09-06 02:29:10 +00:00
absidue
9961183c1b
Only generate the web assets directory during web builds (#2528)
* Webpack 5 optimises productions builds by default, no need for the LoaderOptionsPlugin

* Only create web assets during web build
2022-09-02 09:19:06 -04:00
absidue
a2eceffcc8
Stop electron-builder trying to create GitHub releases in CI workflow (#2407) 2022-08-12 08:35:26 +08:00
absidue
3dc7a8c549
Fix FreeTube's index.html file not being packaged (#2403) 2022-07-18 15:58:37 -04:00
absidue
903f3a2241
Prevent packaging unneeded dependency files (#2303)
* Prevent packaging unneeded dependency files

* Exclude even more dependency files from being packaged
2022-07-14 10:43:07 -04:00
absidue
7287e0011e
Fix webpack deprecation warnings in the dev-runner (#2282) 2022-06-01 07:12:30 -04:00
absidue
331f65ec26
Remove unused dependencies (#2278)
* Remove the bulma-pro and videojs-abloop dependencies

* Remove typescript

* Remove the jest development dependency
2022-05-31 16:15:44 -04:00
PikachuEXE
713738b5ff
* Implement divider for video "more dropdown menu" (#1748)
* * Implement divider for video "more dropdown menu"

* * Update API for ft-icon-button

* * Update existing ft-icon-button user to use new API for dropdown options

* * Update ft-icon-button to remove unused old API

* * Update divider to be less visible

* * Update padding of list item

* * Update WebpackDevServer option to avoid app reloading on MacOS .DS_Store file change
2022-05-29 18:33:27 -04:00
PikachuEXE
80b1e436f8
Update build script to build ARM64 version on Apple Silicon machines (#1918)
* $ Refactor build script

* * Update build script to build ARM64 on Apple Silicon
2022-05-14 12:53:08 -04:00
PikachuEXE
07fd93d3aa
Fix watching video in development (#1668)
* Fix watching watched video in development

* Fix removing a file even when it does not exist (and would raise error)

* Fix infinite reload in video watching

File updates (e.g. dashFiles) in static folder triggers app reload (web-dev-server)
But the a file is created/updated/deleted on before playing any video
So it goes into a loop of loading a video
2021-09-23 07:04:00 +00:00
PikachuEXE
5c83dd8790
Update webpack config to remove explicit HMR plugin (#1729)
This change suppresses warning
"<w> [webpack-dev-server] "hot: true" automatically applies HMR plugin, you don't have to add it manually to your webpack configuration."
2021-09-23 06:43:52 +00:00
Svallinn
d55be8dcc5
Build: Bump copyright year 2021-07-02 17:54:59 +01:00
Svallinn
52f35e5be3
Chore: Update webpack-dev-server to its next version (4.0.0-beta3) 2021-06-19 19:12:42 +01:00
Svallinn
77e743060f
Main+Renderer+Dev-Runner: Refactor smooth scrolling toggling
Smooth scrolling toggling is currently wonky on runtime, since,
most of the time, it doesn't toggle on and off properly.
In addition, now that we have multi-window support,
the current implementation was somewhat lacking.

This commit solves those issues by replacing
the existing smooth scrolling related channels with a
new generic `relaunchRequest` channel.
2021-06-16 05:43:26 +01:00
Svallinn
1900578d2d
Build: Suppress generation of .build-id links in rpm packages
This commit addresses a certain issue with `rpmbuild` in which certain
packages will conflict with each other because they have identical
`.build-id` links in the package.

I can speculate from some comments I've seen that this might be do
to electron versions the packages rely on, but I can't know for sure.

Most relevant issues I've seen:
https://github.com/jordansissel/fpm/issues/1503
https://github.com/jgraph/drawio-desktop/issues/259
2021-05-23 03:52:50 +01:00
Svallinn
b37c46f12d
Revert unintended merged code from "Update package-lock.json"
This was caused by an unexpected Weblate interaction with a force push.
2021-05-10 05:59:48 +01:00
Svallinn
36d94c812d
Update package-lock.json 2021-05-09 05:48:03 +01:00
Svallinn
90f55ec4eb
Remove Debian libappindicator dependency
Closes: #1229
Relevant issue:
* https://github.com/electron/electron/issues/27527

The libappindicator package will not be available in the upcoming
Debian "bullseye" release and no appropriate alternative has been
implemented by default in electron / electron-builder.

This is a temporary measure until this issue is dealt with upstream.
2021-04-24 18:55:53 +01:00
Itai Nelken
42f053d694
Fix ARMv7 (32-bit) building process (#1132) 2021-04-21 23:13:21 +01:00
Preston
3438b15688 Add new Mac icon 2021-03-06 20:41:26 -05:00
Preston
90d49053d8 Use Papirus Icon as Linux / Windows default icon 2021-03-06 17:17:06 -05:00
James Gundlach
cd13691980
Add build support for amrv7l (#956) 2021-03-06 11:19:54 -05:00
Preston
a3fe91bef5 Update to Webpack 5 and Electron 12 2021-03-02 22:51:01 -05:00
Preston
ce640d9c98 Update webpack.web.config.js 2021-01-15 23:50:13 -05:00
Preston
22c40fb049 Update Dependencies 2020-11-23 21:53:49 -05:00
Synkky
89cc8fe9c6
Fix pathing issue when forking process 2020-10-23 23:29:19 +01:00
Preston
0548baf649 Update build.js 2020-10-09 21:09:23 -04:00
Preston
922b0d7539 Add URL Handlers for Mac builds 2020-10-09 21:05:03 -04:00
Preston
50e935c8e8 Test pacman builds 2020-10-05 10:46:09 -04:00
Preston
54a3810a53 Add protocol to enable extension support 2020-10-04 16:31:07 -04:00
Preston
64b877fe27 Fix Locales File and Implement Locales file with app 2020-08-05 23:39:00 -04:00
Preston
4297d310d2 This time for sure. Fix the ARM Builds 2020-07-21 18:11:51 -04:00
Preston
14457df1e8 Fix ARM Build logic 2020-07-21 18:01:35 -04:00
Preston
c43c97ecbf Test different method for ARM builds 2020-07-21 17:43:52 -04:00
Preston
4e2c37b9ef Add Alpine Linux Builds and Update Dependencies 2020-07-21 12:45:07 -04:00
Preston
18f2f8842b Remove ARM and re-add RPM builds 2020-07-17 11:19:21 -04:00
Preston
a460fd08ce Fix channel banners and temporarily remove RPM for testing 2020-07-16 23:14:26 -04:00
Preston
bd14c088a5
Remove arch from build.js 2020-07-12 16:09:52 -04:00
Preston
ea2bbd707a Add arch to build script 2020-07-12 13:53:34 -04:00
Preston
b625683a2e Add error handling for local channel API and add check for missing channel info 2020-07-11 18:36:42 -04:00
Preston
029c492cf8
Merge pull request #16 from d43m0nhLInt3r/master
added Linux category
2020-05-31 22:17:50 -04:00
Preston
37622e1f7b Add logo to build and re-add other Linux targets 2020-05-27 23:01:14 -04:00
Preston
6c3539943b Show icons in build and remove unused items. 2020-05-27 22:48:41 -04:00
Preston
0b5bf7e6b0 Add Linux .zip artifact to CI Build 2020-05-27 19:01:44 -04:00
Preston
ba29289a61 Test RPM with CI Tool 2020-05-27 18:14:28 -04:00
Preston
1b6821a397
Update build.js 2020-05-27 17:18:04 -04:00
Preston
009174b89b Add Support for Live Videos and Live Video Chat 2020-05-23 17:29:42 -04:00
Preston
e1dd7e6db8 Fix web build script and fix errors when running web version 2020-04-17 23:17:45 -04:00
Preston
320c305949 Add Initial PWA Functionality 2020-04-13 22:59:25 -04:00
d43m0nhLInt3r
cc33e5ef15
Merge pull request #1 from FreeTubeApp/master
branch update
2020-04-10 16:45:34 +02:00
d43m0nhLInt3r
e570ceb7ca
added Linux category 2020-03-25 09:05:40 +01:00
Cadence Ember
8bae0b30ab
Start refactoring top bar 2020-03-25 03:34:55 +13:00
Preston
2533161667 Start on Mobile view and add Web Build option 2020-03-24 09:22:29 -04:00
Preston
ded6534d16 Push Latest Code to Repository 2020-02-16 13:30:00 -05:00