Difference between revisions of "User:Oldman/A layman's guide/Making wallpaper available in an ISO image."

From ReactOS Wiki
Jump to: navigation, search
(Created page with "This guide will show you how to make wallpaper available and add more, so that the installation of your locally compiled ISO will have wallpaper available to add to your deskt...")
 
m (A lack of (s))
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
This guide will show you how to make wallpaper available and add more, so that the installation of your locally compiled ISO will have wallpaper available to add to your desktop.
+
Currently, wallpapers are only available in the official '''Release''' ISO. This guide will show you how to make wallpaper(s) available, so that the installation of your locally compiled ISO will have wallpaper(s) available to add to your desktop.
  
The wallpaper folder in the '''source''' directory, in '''\reactos\modules\wallpapers'''
+
===Adding wallpapers===
  
Examples: '''E:\ReactOS_Development\Source\reactos\modules\wallpapers''' or  '''/home/RosBuild/source/reactos/modules/wallpapers'''
+
In the source directory go into '''\reactos\modules\wallpapers\''' and add your own image(s).
  
Just add your own images to the ones already in the wallpapers folder and follow the rest of the guide to make them all available.
+
In the same directory, find '''CMakeLists.txt'''
 +
 
 +
Open it in a Text Editor and add the following line:
 +
 
 +
'''add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/image-name.png DESTINATION reactos/Web/Wallpaper FOR all)'''
 +
 
 +
Where '''image-name.png''' is the name of your own image.
 +
 
 +
If you only want your own wallpaper(s), then use a '''#''' at the front of all the lines you wish to comment out (commenting out stops it being added to the compiled ISO).
 +
 
 +
===Making wallpapers available===
  
 
====Windows====
 
====Windows====
Line 40: Line 50:
  
  
'''NOTE''': If the code is changed in the configure script, then the line numbers where you need to make the addition, may also change.
+
'''NOTE:'''
 +
If the code in the configure script has been changed (additions or subtractions) since this was written, then the line numbers where you need to make the addition, may also change.
  
 +
===Summary===
 +
Your changes will still be there after you have updated the source, so that you will not have to keep making them each time you compile an ISO.
  
 
<p style="border-bottom:3px solid #000"></p>
 
<p style="border-bottom:3px solid #000"></p>
  
 
[[User:Oldman/A_layman's_guide | Layman's guides]]
 
[[User:Oldman/A_layman's_guide | Layman's guides]]

Latest revision as of 12:01, 10 August 2020

Currently, wallpapers are only available in the official Release ISO. This guide will show you how to make wallpaper(s) available, so that the installation of your locally compiled ISO will have wallpaper(s) available to add to your desktop.

Adding wallpapers

In the source directory go into \reactos\modules\wallpapers\ and add your own image(s).

In the same directory, find CMakeLists.txt

Open it in a Text Editor and add the following line:

add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/image-name.png DESTINATION reactos/Web/Wallpaper FOR all)

Where image-name.png is the name of your own image.

If you only want your own wallpaper(s), then use a # at the front of all the lines you wish to comment out (commenting out stops it being added to the compiled ISO).

Making wallpapers available

Windows

In your source directory, go into the reactos directory and find configure.cmd

Example: E:\ReactOS_Development\Source\reactos\configure.cmd

And in a text editor go to line 189, which should look like the line shown below (only the first part shown)

cmake -G %CMAKE_GENERATOR% -DENABLE_CCACHE:BOOL=0 -DCMAKE_TOOLCHAIN_FILE:FILEPATH=%MINGW_TOOCHAIN_FILE%

and add -DENABLE_WALLPAPERS=1 into the line, like so:

cmake -G %CMAKE_GENERATOR% -DENABLE_CCACHE:BOOL=0 -DENABLE_WALLPAPERS=1 -DCMAKE_TOOLCHAIN_FILE:FILEPATH=%MINGW_TOOCHAIN_FILE%

then save and compile.

Unix

In your source directory, go into the reactos directory and find configure.sh

Example: /home/RosBuild/source/reactos/configure.sh

And in a text editor go to line 52, which should look like the line shown below (only the first part shown)

cmake -G "$CMAKE_GENERATOR" -DENABLE_CCACHE:BOOL=0 -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-gcc.cmake

add -DENABLE_WALLPAPERS=1 into the line, like so:

cmake -G "$CMAKE_GENERATOR" -DENABLE_CCACHE:BOOL=0 -DENABLE_WALLPAPERS=1 -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-gcc.cmake

then save and compile.


NOTE: If the code in the configure script has been changed (additions or subtractions) since this was written, then the line numbers where you need to make the addition, may also change.

Summary

Your changes will still be there after you have updated the source, so that you will not have to keep making them each time you compile an ISO.

Layman's guides